mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Fabio Pistolesi
26.05.2016 b5a13bf22a5037cb7cb070cee7a21c821d6be287
OPENDJ-1681 Do not print error message about state update on empty backend

Updating replication state in the suffix entry on an empty backend backend should not print an error message, since we'll
automatically revert to update it in the configuration.
1 files modified
10 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java 10 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java
@@ -266,12 +266,14 @@
    op.setSynchronizationOperation(true);
    op.setDontSynchronize(true);
    op.run();
    if (op.getResultCode() != ResultCode.SUCCESS)
    final ResultCode resultCode = op.getResultCode();
    if (resultCode != ResultCode.SUCCESS
        && !(resultCode == ResultCode.NO_SUCH_OBJECT && serverStateEntryDN.equals(baseDN)))
    {
      logger.error(DEBUG_ERROR_UPDATING_RUV,
          op.getResultCode().getName(), op, op.getErrorMessage(), baseDN);
      logger.error(DEBUG_ERROR_UPDATING_RUV, resultCode.getName(), op, op.getErrorMessage(), serverStateEntryDN);
    }
    return op.getResultCode();
    return resultCode;
  }
  /**