mirror of https://github.com/scribd/objinsync
Purge uidCache after rm file (#14)
This commit is contained in:
parent
6b4b7d5389
commit
514748f568
|
@ -383,6 +383,12 @@ func (self *Puller) Pull() string {
|
|||
// delete files not exist in remote source
|
||||
for f, _ := range self.filesToDelete {
|
||||
os.Remove(f)
|
||||
uidKey, err := uidKeyFromLocalPath(self.LocalDir, f)
|
||||
if err == nil {
|
||||
self.uidLock.Lock()
|
||||
delete(self.uidCache, uidKey)
|
||||
self.uidLock.Unlock()
|
||||
}
|
||||
}
|
||||
|
||||
return pullErrMsg
|
||||
|
|
Loading…
Reference in New Issue