mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-07 12:37:41 +01:00
add entry lock on file handle release
This commit is contained in:
1 parent
bfc3c11fdc
commit
363de28057
1 file changed
+5
@@ -90,6 +90,11 @@ func (fh *FileHandle) CloseReader() {
|
||||
}
|
||||
|
||||
func (fh *FileHandle) Release() {
|
||||
fh.entryLock.Lock()
|
||||
defer fh.entryLock.Unlock()
|
||||
|
||||
glog.V(4).Infof("Release %s fh %d", fh.entry.Name, fh.handle)
|
||||
|
||||
fh.dirtyPages.Destroy()
|
||||
fh.CloseReader()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user