Skip to content

Commit

Permalink
Merge pull request rook#13991 from travisn/shared-object-non-ec-pool
Browse files Browse the repository at this point in the history
object: Set non-ec shared pool to metadata pool
  • Loading branch information
travisn authored Mar 28, 2024
2 parents 029c0c2 + 1c612b0 commit 1587897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/operator/ceph/object/objectstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,9 @@ func applyExpectedRadosNamespaceSettings(zoneConfig map[string]interface{}, meta
return fmt.Errorf("failed to parse placement_pools[0].val")
}
placementVals["index_pool"] = metadataPrefix + "buckets.index"
placementVals["data_extra_pool"] = dataPrefix + "buckets.non-ec"
// The extra pool is for omap data for multi-part uploads, so we use
// the metadata pool instead of the data pool.
placementVals["data_extra_pool"] = metadataPrefix + "buckets.non-ec"
storageClasses, ok := placementVals["storage_classes"].(map[string]interface{})
if !ok {
return fmt.Errorf("failed to parse storage_classes")
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/ceph/object/objectstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const (
"data_pool": "rgw-data-pool:store-a.buckets.data"
}
},
"data_extra_pool": "rgw-data-pool:store-a.buckets.non-ec",
"data_extra_pool": "rgw-meta-pool:store-a.buckets.non-ec",
"index_type": 0,
"inline_data": true
}
Expand Down

0 comments on commit 1587897

Please sign in to comment.