Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ private static FileCacheStore getFile(String name, boolean enableFileCache) {

private static void tryFileLock(FileCacheStore.Builder builder, String fileName) throws PathNotExclusiveException {
File lockFile = new File(fileName + ".lock");
lockFile.deleteOnExit();

FileLock dirLock;
try {
Expand All @@ -188,6 +187,7 @@ private static void tryFileLock(FileCacheStore.Builder builder, String fileName)
throw new PathNotExclusiveException(fileName + " is not exclusive. Maybe multiple Dubbo instances are using the same folder.");
}

lockFile.deleteOnExit();
builder.directoryLock(dirLock).lockFile(lockFile);
}

Expand Down