Manual fixup

This commit is contained in:
Audrius Butkevicius
2014-09-28 12:39:39 +01:00
parent 5ec95086f2
commit fdf8ee7015
8 changed files with 89 additions and 88 deletions

View File

@@ -217,9 +217,9 @@ func (p *Puller) pullerIteration(ncopiers, npullers, nfinishers int) int {
}()
}
p.model.rmut.RLock()
p.model.fmut.RLock()
files := p.model.folderFiles[p.folder]
p.model.rmut.RUnlock()
p.model.fmut.RUnlock()
// !!!
// WithNeed takes a database snapshot (by necessity). By the time we've