Put split parent object ID for EC chunks #1256
1 changed files with 12 additions and 0 deletions
|
@ -356,6 +356,18 @@ func updateListIndexes(tx *bbolt.Tx, obj *objectSDK.Object, f updateIndexItemFun
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if parentSplitParentID := ech.ParentSplitParentID(); parentSplitParentID != nil {
|
||||||
|
objKey := objectKey(ech.Parent(), make([]byte, objectKeySize))
|
||||||
|
err := f(tx, namedBucketItem{
|
||||||
|
name: parentBucketName(cnr, bucketName),
|
||||||
|
key: objectKey(*parentSplitParentID, make([]byte, objectKeySize)),
|
||||||
|
val: objKey,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue