refactor a bit more

fix https://github.com/chrislusf/seaweedfs/issues/777
This commit is contained in:
Chris Lu
2018-11-29 00:07:54 -08:00
parent ceca078acb
commit 7a6f49cd42
2 changed files with 11 additions and 9 deletions

View File

@@ -165,7 +165,7 @@ func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntr
return &filer_pb.UpdateEntryResponse{}, err
}
if err = fs.filer.UpdateEntry(newEntry); err == nil {
if err = fs.filer.UpdateEntry(entry, newEntry); err == nil {
fs.filer.DeleteChunks(unusedChunks)
fs.filer.DeleteChunks(garbages)
}