Handle needed files in batches

This commit is contained in:
Jakob Borg
2014-07-15 17:54:00 +02:00
parent 32a5e83612
commit 7943902d73
3 changed files with 55 additions and 31 deletions

View File

@@ -207,8 +207,8 @@ func ldbReplace(db *leveldb.DB, repo, node []byte, fs []protocol.FileInfo) uint6
if debug {
l.Debugf("delete; repo=%q node=%x name=%q", repo, node, name)
}
batch.Delete(dbi.Key())
ldbRemoveFromGlobal(db, batch, repo, node, name)
batch.Delete(dbi.Key())
return 0
})
}