Skip to content

Commit

Permalink
Fixes #125
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Oct 31, 2024
1 parent a8088ef commit b6d8664
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public int read(String path, ByteBuffer buf, long size, long offset, FileInfo fi
@Override
public int release(String path, FileInfo fi) {
try (PathLock pathLock = lockManager.lockForReading(path);
DataLock _ = pathLock.lockDataForReading()) {
DataLock _ = pathLock.lockDataForWriting()) {
LOG.trace("release {} ({})", path, fi.getFh());
fileHandler.release(fi);
return 0;
Expand Down

0 comments on commit b6d8664

Please sign in to comment.