LUCENE-5189: s/doApplyAllDeletes/getAndResetApplyAllDeletes/

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1528077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2013-10-01 13:02:35 +00:00
parent 7fab2bdd38
commit 86d5dd6529
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ final class DocumentsWriter {
}
private final boolean applyAllDeletes(DocumentsWriterDeleteQueue deleteQueue) throws IOException {
if (flushControl.doApplyAllDeletes()) {
if (flushControl.getAndResetApplyAllDeletes()) {
if (deleteQueue != null && !flushControl.isFullFlush()) {
ticketQueue.addDeletes(deleteQueue);
}

View File

@ -429,7 +429,7 @@ final class DocumentsWriterFlushControl {
return flushingWriters.size();
}
public boolean doApplyAllDeletes() {
public boolean getAndResetApplyAllDeletes() {
return flushDeletes.getAndSet(false);
}