mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 07:14:59 +00:00
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
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user