mirror of https://github.com/apache/lucene.git
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:
parent
7fab2bdd38
commit
86d5dd6529
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -429,7 +429,7 @@ final class DocumentsWriterFlushControl {
|
|||
return flushingWriters.size();
|
||||
}
|
||||
|
||||
public boolean doApplyAllDeletes() {
|
||||
public boolean getAndResetApplyAllDeletes() {
|
||||
return flushDeletes.getAndSet(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue