/** * Marks the ColumnFamily specified by cfId as clean for this log segment. If the * given context argument is contained in this file, it will only mark the CF as * clean if no newer writes have taken place. * * @param cfId the column family ID that is now clean * @param context the optional clean offset */ public synchronized void markClean(UUID cfId, ReplayPosition context) { if (!cfDirty.containsKey(cfId)) return; if (context.segment == id) markClean(cfId, context.position); else if (context.segment > id) markClean(cfId, Integer.MAX_VALUE); }
segment.markClean(cfId, lowerBound, upperBound);
segment.markClean(cfId, lowerBound, upperBound);
segment.markClean(cfId, lowerBound, upperBound);
segment.markClean(cfId, context);
segment.markClean(dirtyCFId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(dirtyCFId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(cfId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(dirtyCFId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(cfId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(cfId, CommitLogPosition.NONE, segment.getCurrentCommitLogPosition());
segment.markClean(dirtyCFId, segment.getContext());
segment.markClean(cfId, segment.getContext());