mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-13 01:28:37 +02:00
skip deletion if entry not found
This commit is contained in:
1 parent
f124ebab1d
commit
603de2d5db
2 files changed
+8
-2
No files matched your search
@@ -79,7 +79,10 @@ func (store *AbstractSqlStore) FindEntry(fullpath filer2.FullPath) (*filer2.Entr
|
||||
|
||||
func (store *AbstractSqlStore) DeleteEntry(fullpath filer2.FullPath) (*filer2.Entry, error) {
|
||||
|
||||
entry, _ := store.FindEntry(fullpath)
|
||||
entry, err := store.FindEntry(fullpath)
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
dir, name := fullpath.DirAndName()
|
||||
|
||||
|
||||
Reference in new issue
Block a user