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…
Reference in New Issue