metabase: Fix EC storage schema #1160

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-node:fix/ec_chunks_metabase_schema into master 2024-06-04 14:35:27 +00:00

Do not store EC info twice.

Relates #1158

Do not store EC info twice. Relates #1158
dstepanov-yadro force-pushed fix/ec_chunks_metabase_schema from f6703bf9b3 to 5d2241d01a 2024-06-04 10:33:10 +00:00 Compare
dstepanov-yadro reviewed 2024-06-04 10:38:25 +00:00
@ -473,46 +473,6 @@ func delUniqueIndexes(tx *bbolt.Tx, obj *objectSDK.Object, isParent bool) error
name: rootBucketName(cnr, bucketName),
key: objKey,
})
if obj.ECHeader() != nil {
Author
Member
EC info will be deleted here: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/5d2241d01abc251f8c1e08e538dc80ce2c80ac49/pkg/local_object_storage/metabase/delete.go#L335 https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/5d2241d01abc251f8c1e08e538dc80ce2c80ac49/pkg/local_object_storage/metabase/put.go#L341
dstepanov-yadro reviewed 2024-06-04 10:41:00 +00:00
@ -259,9 +258,6 @@ func putUniqueIndexes(
isObjKeySet := true
if ecHead := obj.ECHeader(); ecHead != nil {
if err = putECInfo(tx, cnr, objKey, ecHead); err != nil {
Author
Member
EC will be inserted here: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/5d2241d01abc251f8c1e08e538dc80ce2c80ac49/pkg/local_object_storage/metabase/put.go#L171 https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/5d2241d01abc251f8c1e08e538dc80ce2c80ac49/pkg/local_object_storage/metabase/put.go#L341
dstepanov-yadro requested review from storage-core-committers 2024-06-04 10:42:28 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-06-04 10:42:34 +00:00
dstepanov-yadro changed title from WIP: metabase: Fix EC storage schema to metabase: Fix EC storage schema 2024-06-04 10:42:45 +00:00
Owner

Have you run sanity tests?

Have you run sanity tests?
fyrchik approved these changes 2024-06-04 11:02:53 +00:00
Author
Member

Have you run sanity tests?

Nope, only unit tests.

> Have you run sanity tests? Nope, only unit tests.
acid-ant approved these changes 2024-06-04 12:45:13 +00:00
dstepanov-yadro force-pushed fix/ec_chunks_metabase_schema from 5d2241d01a to cc2449beaf 2024-06-04 14:25:01 +00:00 Compare
Author
Member

Have you run sanity tests?

Done

> Have you run sanity tests? Done
dstepanov-yadro merged commit cc2449beaf into master 2024-06-04 14:35:27 +00:00
dstepanov-yadro deleted branch fix/ec_chunks_metabase_schema 2024-06-04 14:35:28 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1160
No description provided.