fixed minor issue on timed update node status
@@ -91,12 +91,13 @@ public class OUpdateDatabaseStatusTask extends OAbstractRemoteTask {
if (database1 != null) {
database1.getSyncConfiguration().setLastLSN(getNodeSource(), lsn, false);
}
+ if (database != null) {
if (((OAbstractPaginatedStorage) database.getStorage().getUnderlying()).getLSN() != null) {
return new OUpdateResult(((OAbstractPaginatedStorage) database.getStorage().getUnderlying()).getLSN());
- } else {
- return null;
}
}
+ return null;
+ }
@Override
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType() {
