mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 14:54:56 +00:00
also flush before optimize, just to optimize all the changes up until now
This commit is contained in:
parent
8a69910465
commit
016bcdfa3a
@ -913,6 +913,9 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine {
|
||||
}
|
||||
|
||||
@Override public void optimize(Optimize optimize) throws EngineException {
|
||||
if (optimize.flush()) {
|
||||
flush(new Flush());
|
||||
}
|
||||
if (optimizeMutex.compareAndSet(false, true)) {
|
||||
rwl.readLock().lock();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user