InternalEngine - only set dirty=false after a refresh happened

This commit is contained in:
Boaz Leskes 2014-03-31 17:35:48 +02:00
parent 1aac41e0d1
commit 5553c383bc
1 changed files with 1 additions and 1 deletions

View File

@ -706,9 +706,9 @@ public class InternalEngine extends AbstractIndexShardComponent implements Engin
// but, we want to make sure not to loose ant refresh calls, if one is taking time
synchronized (refreshMutex) {
if (dirty || refresh.force()) {
dirty = false;
boolean refreshed = searcherManager.maybeRefresh();
assert refreshed : "failed to refresh even though refreshMutex was acquired";
dirty = false;
}
}
} catch (AlreadyClosedException e) {