}
}
// last operation, as being set as value==0 it prevents others from using it during the
// deletion process:
if (file != null && file.isMultiChunked()) {
FileReadLockKey readLockKey = new FileReadLockKey(indexName, fileName);
if (trace) log.tracef("deleting readlock: %s", readLockKey);
if (forceSynchronousDeletes) {
locksCache.withFlags(Flag.IGNORE_RETURN_VALUES).remove(readLockKey);
} else {
locksCache.withFlags(Flag.IGNORE_RETURN_VALUES).removeAsync(readLockKey);