mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
detailed export
This commit is contained in:
parent
b282e34dc2
commit
2f2e417b68
|
@ -169,6 +169,16 @@ func printout(level int, entry *filer2.Entry) error {
|
||||||
print("| ")
|
print("| ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println(entry.FullPath.Name())
|
print(entry.FullPath.Name())
|
||||||
|
for _, chunk:=range entry.Chunks{
|
||||||
|
print("[")
|
||||||
|
print(chunk.FileId)
|
||||||
|
print(",")
|
||||||
|
print(chunk.Offset)
|
||||||
|
print(",")
|
||||||
|
print(chunk.Size)
|
||||||
|
print(")")
|
||||||
|
}
|
||||||
|
println()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,7 @@ func (wfs *WFS) ReleaseHandle(fullpath string, handleId fuse.HandleID) {
|
||||||
wfs.pathToHandleLock.Lock()
|
wfs.pathToHandleLock.Lock()
|
||||||
defer wfs.pathToHandleLock.Unlock()
|
defer wfs.pathToHandleLock.Unlock()
|
||||||
|
|
||||||
glog.V(4).Infof("%s releasing handle id %dcurrent handles lengh %d", fullpath, handleId, len(wfs.handles))
|
glog.V(4).Infof("%s releasing handle id %d current handles length %d", fullpath, handleId, len(wfs.handles))
|
||||||
delete(wfs.pathToHandleIndex, fullpath)
|
delete(wfs.pathToHandleIndex, fullpath)
|
||||||
if int(handleId) < len(wfs.handles) {
|
if int(handleId) < len(wfs.handles) {
|
||||||
wfs.handles[int(handleId)] = nil
|
wfs.handles[int(handleId)] = nil
|
||||||
|
|
Loading…
Reference in a new issue