You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/directory/FDBDirectoryLockFactory.java
if (existingUuid != null && existingUuid.compareTo(selfStampUuid) == 0) {
223
232
// clear the lock if locked and matches uuid
224
233
aContext.ensureActive().clear(fileLockKey);
225
234
closingContext = aContext;
226
235
logSelf(isRecovery ? "FileLock: Cleared in Recovery path" : "FileLock: Cleared");
227
-
} elseif (!isRecovery) {
236
+
} elseif (!isRecovery) {
228
237
thrownewAlreadyClosedException("FileLock: Expected to be locked during close.This=" + this + " existingUuid=" + existingUuid); // The string append methods should handle null arguments.
229
238
}
230
-
});
239
+
}
240
+
});
231
241
232
-
if (agilityContext.isClosed()) {
233
-
// Here: this is considered to be a recovery path, may bypass closed context.
0 commit comments