private bool ApplyAllDeletes(DocumentsWriterDeleteQueue deleteQueue) { if (flushControl.GetAndResetApplyAllDeletes()) { if (deleteQueue != null && !flushControl.IsFullFlush) { ticketQueue.AddDeletes(deleteQueue); } PutEvent(ApplyDeletesEvent.INSTANCE); // apply deletes event forces a purge return(true); } return(false); }