Skip to content

Commit ed00949

Browse files
committed
MB-51573 Add storageBackend to terse bucket info
This adds the storageBackend information to the results of the terse bucket info (/pools/default/b/<bucket-name>) results. Checked that one and only one storageBackend property is returned for * /pools/default/buckets * /pools/default/buckets/<bucket> * /pools/default/b/<bucket> * /pools/default/bs/<bucket> * /pools/default/bucketsStreaming/<bucket> Change-Id: Ic5ab2a8a11fb8051ece90d4978ff3d3faf4ee901 Reviewed-on: https://review.couchbase.org/c/ns_server/+/172801 Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Tested-by: Build Bot <[email protected]> Tested-by: Steve Watanabe <[email protected]> Reviewed-by: Abhijeeth Nuthan <[email protected]>
1 parent 7b08404 commit ed00949

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/bucket_info_cache.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ build_short_bucket_info(Id, BucketConfig, Snapshot) ->
185185
BucketUUID = ns_bucket:uuid(Id, Snapshot),
186186
[build_name_and_locator(Id, BucketConfig),
187187
{bucketType, ns_bucket:external_bucket_type(BucketConfig)},
188+
{storageBackend, ns_bucket:storage_backend(BucketConfig)},
188189
{uuid, BucketUUID},
189190
{uri, build_pools_uri(["buckets", Id], BucketUUID)},
190191
{streamingUri, build_pools_uri(["bucketsStreaming", Id], BucketUUID)},

src/menelaus_web_buckets.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ build_dynamic_bucket_info(InfoLevel, Id, BucketConfig, Ctx) ->
298298
{rawRAM, ns_bucket:raw_ram_quota(BucketConfig)}]}},
299299
{basicStats, {build_bucket_stats(InfoLevel, Id, Ctx)}},
300300
{evictionPolicy, build_eviction_policy(BucketConfig)},
301-
{storageBackend, ns_bucket:storage_backend(BucketConfig)},
302301
{durabilityMinLevel, build_durability_min_level(BucketConfig)},
303302
build_pitr_dynamic_bucket_info(BucketConfig),
304303
build_magma_bucket_info(BucketConfig),

0 commit comments

Comments
 (0)