[#9999] metabase: Do not store object owner attribute
Some checks failed
DCO action / DCO (pull_request) Successful in 2m27s
Vulncheck / Vulncheck (pull_request) Failing after 6m34s
Build / Build Components (1.21) (pull_request) Successful in 7m25s
Build / Build Components (1.20) (pull_request) Successful in 7m35s
Tests and linters / Lint (pull_request) Successful in 9m9s
Tests and linters / Staticcheck (pull_request) Successful in 8m48s
Tests and linters / Tests with -race (pull_request) Failing after 13m35s
Tests and linters / Tests (1.21) (pull_request) Successful in 15m2s
Tests and linters / Tests (1.20) (pull_request) Successful in 15m10s

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-02-20 17:09:52 +03:00
parent bf0ec1ad7e
commit b9f6202337

View file

@ -316,14 +316,6 @@ func updateFKBTIndexes(tx *bbolt.Tx, obj *objectSDK.Object, f updateIndexItemFun
attrs := obj.Attributes()
key := make([]byte, bucketKeySize)
err := f(tx, namedBucketItem{
name: ownerBucketName(cnr, key),
key: []byte(obj.OwnerID().EncodeToString()),
val: objKey,
})
if err != nil {
return err
}
// user specified attributes
for i := range attrs {