added pack support to GetStorageBlocks()

This commit is contained in:
Jarek Kowalski
2017-08-18 20:41:25 -07:00
parent 0c597de0fe
commit 3df0fc0445

View File

@@ -23,6 +23,15 @@ func (r *ObjectManager) addStorageBlocks(result map[string]bool, oid ObjectID) e
result[oid.StorageBlock] = true
}
if oid.PackID != "" {
s, err := r.packIDToSection(oid)
if err != nil {
return err
}
r.addStorageBlocks(result, s.Base)
}
if oid.Indirect == nil {
return nil
}