mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
avoid possible nil case during other error cases
This commit is contained in:
parent
ac6fd36c06
commit
0fdf7eca48
@ -182,7 +182,7 @@ func (fsw *FilerStoreWrapper) DeleteEntry(ctx context.Context, fp util.FullPath)
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
existingEntry, findErr := fsw.FindEntry(ctx, fp)
|
existingEntry, findErr := fsw.FindEntry(ctx, fp)
|
||||||
if findErr == filer_pb.ErrNotFound {
|
if findErr == filer_pb.ErrNotFound || existingEntry == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if len(existingEntry.HardLinkId) != 0 {
|
if len(existingEntry.HardLinkId) != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user