InternalEngine - only set dirty=false after a refresh happened
This commit is contained in:
parent
1aac41e0d1
commit
5553c383bc
|
@ -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
|
// but, we want to make sure not to loose ant refresh calls, if one is taking time
|
||||||
synchronized (refreshMutex) {
|
synchronized (refreshMutex) {
|
||||||
if (dirty || refresh.force()) {
|
if (dirty || refresh.force()) {
|
||||||
dirty = false;
|
|
||||||
boolean refreshed = searcherManager.maybeRefresh();
|
boolean refreshed = searcherManager.maybeRefresh();
|
||||||
assert refreshed : "failed to refresh even though refreshMutex was acquired";
|
assert refreshed : "failed to refresh even though refreshMutex was acquired";
|
||||||
|
dirty = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (AlreadyClosedException e) {
|
} catch (AlreadyClosedException e) {
|
||||||
|
|
Loading…
Reference in New Issue