mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 07:43:37 +08:00
simplify
This commit is contained in:
@@ -44,10 +44,7 @@ func NewDirectoryHandleToInode() *DirectoryHandleToInode {
|
||||
}
|
||||
|
||||
func (wfs *WFS) AcquireDirectoryHandle() (DirectoryHandleId, *DirectoryHandle) {
|
||||
wfs.fhmap.Lock()
|
||||
fh := wfs.fhmap.nextFh
|
||||
wfs.fhmap.nextFh = FileHandleId(util.RandomUint64())
|
||||
wfs.fhmap.Unlock()
|
||||
fh := FileHandleId(util.RandomUint64())
|
||||
|
||||
wfs.dhmap.Lock()
|
||||
defer wfs.dhmap.Unlock()
|
||||
|
Reference in New Issue
Block a user