replica: notify blob hub

This commit is contained in:
Brad Fitzpatrick 2011-05-22 21:23:23 -07:00
parent ccf33926c8
commit 513b594dbc
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ func (sto *replicaStorage) ReceiveBlob(b *blobref.BlobRef, source io.Reader) (xx
case res.err == nil && res.sb.Size == size:
nSuccess++
if nSuccess == sto.minWritesForSuccess {
sto.GetBlobHub().NotifyBlobReceived(b)
return res.sb, nil
}
case res.err == nil: