c._stats.incrementPiecesDirtiedGood()
}
t.clearPieceTouchers(piece)
+ p.incrementPendingWrites()
t.cl.unlock()
err := p.Storage().MarkComplete()
if err != nil {
t.logger.Printf("%T: error marking piece complete %d: %s", t.storage, piece, err)
}
t.cl.lock()
-
+ p.decrementPendingWrites()
if t.closed.IsSet() {
return
}