Skip to content

Commit ef0cc21

Browse files
committed
Better comments
1 parent a0a0c8e commit ef0cc21

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,7 +3464,8 @@ private Engine getAndSetCurrentEngine(Engine newEngine) {
34643464

34653465
/**
34663466
* Executes an operation while preventing the shard's engine instance to be reset during the execution.
3467-
* The operation might be executed with a {@code null} engine instance. The engine might be closed while the operation is executed.
3467+
* The operation might be executed with a {@code null} engine instance in case the engine/shard is closed or the engine is being
3468+
* reset. The engine might be closed while the operation is executed.
34683469
*
34693470
* @param operation the operation to execute
34703471
* @return the result of the operation
@@ -3476,7 +3477,8 @@ public <R> R withEngineOrNullIfBeingReset(Function<Engine, R> operation) {
34763477

34773478
/**
34783479
* Executes an operation while preventing the shard's engine instance to be reset during the execution.
3479-
* The operation might be executed with a {@code null} engine instance. The engine might be closed while the operation is executed.
3480+
* The operation might be executed with a {@code null} engine instance in case the engine/shard is closed. The engine might be
3481+
* closed while the operation is executed.
34803482
*
34813483
* @param operation the operation to execute
34823484
* @return the result of the operation

0 commit comments

Comments
 (0)