Skip to content

Commit 168419e

Browse files
committed
remove some assertNoEngineResetLock
1 parent a75a293 commit 168419e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,7 +4507,6 @@ assert getActiveOperationsCount() == OPERATIONS_BLOCKED
45074507
) {
45084508
@Override
45094509
public IndexCommitRef acquireLastIndexCommit(boolean flushFirst) {
4510-
assert assertNoEngineResetLock();
45114510
synchronized (engineMutex) {
45124511
if (newEngineReference.get() == null) {
45134512
throw new AlreadyClosedException("engine was closed");
@@ -4519,7 +4518,6 @@ public IndexCommitRef acquireLastIndexCommit(boolean flushFirst) {
45194518

45204519
@Override
45214520
public IndexCommitRef acquireSafeIndexCommit() {
4522-
assert assertNoEngineResetLock();
45234521
synchronized (engineMutex) {
45244522
if (newEngineReference.get() == null) {
45254523
throw new AlreadyClosedException("engine was closed");
@@ -4531,7 +4529,6 @@ public IndexCommitRef acquireSafeIndexCommit() {
45314529
@Override
45324530
public void close() throws IOException {
45334531
Engine newEngine;
4534-
assert assertNoEngineResetLock();
45354532
synchronized (engineMutex) {
45364533
newEngine = newEngineReference.get();
45374534
if (newEngine == getEngineOrNull()) {

0 commit comments

Comments
 (0)