mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 22:37:56 +08:00
ensure to delete on filer also
This commit is contained in:
@@ -396,13 +396,10 @@ func (dir *Dir) removeOneFile(req *fuse.RemoveRequest) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if entry == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// first, ensure the filer store can correctly delete
|
// first, ensure the filer store can correctly delete
|
||||||
glog.V(3).Infof("remove file: %v", req)
|
glog.V(3).Infof("remove file: %v", req)
|
||||||
isDeleteData := entry.HardLinkCounter <= 1
|
isDeleteData := entry != nil && entry.HardLinkCounter <= 1
|
||||||
err = filer_pb.Remove(dir.wfs, dirFullPath, req.Name, isDeleteData, false, false, false, []int32{dir.wfs.signature})
|
err = filer_pb.Remove(dir.wfs, dirFullPath, req.Name, isDeleteData, false, false, false, []int32{dir.wfs.signature})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(3).Infof("not found remove file %s: %v", filePath, err)
|
glog.V(3).Infof("not found remove file %s: %v", filePath, err)
|
||||||
|
Reference in New Issue
Block a user