<BUG>try {storage.clearIndex(indexId);return this;</BUG><CONTEXT>final boolean txIsActive = database.getTransaction().isActive();if (!txIsActive)keyLockManager.lockAllExclusive();try {acquireSharedLock();<extra_id_0>} finally {releaseSharedLock();</CONTEXT>
keyLockManager.acquireExclusiveLock(key);while (true)return storage.removeKeyFromIndex(indexId, key);} catch (OInvalidIndexEngineIdException e) {doReloadIndexEngine();}