use of org.apache.jackrabbit.oak.plugins.document.mongo.replica.LocalChanges in project jackrabbit-oak by apache.
the class MongoDocumentStore method updateAccessedRevision.
@Override
public synchronized void updateAccessedRevision(RevisionVector revisions, int clusterId) {
if (localChanges == null && replicaInfo != null) {
localChanges = new LocalChanges(clusterId);
replicaInfo.addListener(localChanges);
}
RevisionVector previousValue = mostRecentAccessedRevisions;
if (mostRecentAccessedRevisions == null) {
mostRecentAccessedRevisions = revisions;
} else {
mostRecentAccessedRevisions = mostRecentAccessedRevisions.pmax(revisions);
}
if (LOG.isDebugEnabled() && !mostRecentAccessedRevisions.equals(previousValue)) {
LOG.debug("Most recent accessed revisions: {}", mostRecentAccessedRevisions);
}
}
Aggregations