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.
| | |
| | | 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; |
| | | } |
| | | |
| | | /** |