mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid overwriting variables
This commit is contained in:
parent
468514f525
commit
e97c60cc10
|
@ -34,7 +34,7 @@ func (filer *MemDbStore) InsertEntry(entry *filer2.Entry) (err error) {
|
|||
}
|
||||
|
||||
func (filer *MemDbStore) UpdateEntry(entry *filer2.Entry) (err error) {
|
||||
found, entry, err := filer.FindEntry(entry.FullPath)
|
||||
found, _, err := filer.FindEntry(entry.FullPath)
|
||||
if !found {
|
||||
return fmt.Errorf("No such file: %s", entry.FullPath)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue