[DOCS] Fix typos in InternalEngine.java comments (#46861)

This commit is contained in:
Takuya Kajiwara 2019-10-18 23:35:51 +09:00 committed by James Rodewig
parent 1beeb3a83e
commit a56daeae2d
1 changed files with 3 additions and 3 deletions

View File

@ -2456,10 +2456,10 @@ public class InternalEngine extends Engine {
}
final void ensureCanFlush() {
// translog recover happens after the engine is fully constructed
// if we are in this stage we have to prevent flushes from this
// translog recovery happens after the engine is fully constructed.
// If we are in this stage we have to prevent flushes from this
// engine otherwise we might loose documents if the flush succeeds
// and the translog recover fails we we "commit" the translog on flush.
// and the translog recovery fails when we "commit" the translog on flush.
if (pendingTranslogRecovery.get()) {
throw new IllegalStateException(shardId.toString() + " flushes are disabled - pending translog recovery");
}