]> Sergey Matveev's repositories - btrtrc.git/blobdiff - piece.go
Comments on the VerifyData methods
[btrtrc.git] / piece.go
index 6598859523150abd9cf78bcb6df5e577ed0484cd..6808413a9892c3b069a7ee683240964a7779d651 100644 (file)
--- a/piece.go
+++ b/piece.go
@@ -178,6 +178,7 @@ func (p *Piece) bytesLeft() (ret pp.Integer) {
        return p.length() - p.numDirtyBytes()
 }
 
+// Forces the piece data to be rehashed.
 func (p *Piece) VerifyData() {
        p.t.cl.lock()
        defer p.t.cl.unlock()