From: Casey Bodley Date: Wed, 10 Oct 2018 19:12:03 +0000 (-0400) Subject: rgw: add const to some RGWBucketInfo helpers X-Git-Tag: v14.1.0~1156^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c0ee28731bc44eafdfbe50db4d4b8fcd273a237;p=ceph.git rgw: add const to some RGWBucketInfo helpers Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index db45f2abb65c..10c41370c926 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -1375,9 +1375,9 @@ struct RGWBucketInfo { void decode_json(JSONObj *obj); bool versioned() const { return (flags & BUCKET_VERSIONED) != 0; } - int versioning_status() { return flags & (BUCKET_VERSIONED | BUCKET_VERSIONS_SUSPENDED | BUCKET_MFA_ENABLED); } - bool versioning_enabled() { return (versioning_status() & (BUCKET_VERSIONED | BUCKET_VERSIONS_SUSPENDED)) == BUCKET_VERSIONED; } - bool mfa_enabled() { return (versioning_status() & BUCKET_MFA_ENABLED) != 0; } + int versioning_status() const { return flags & (BUCKET_VERSIONED | BUCKET_VERSIONS_SUSPENDED | BUCKET_MFA_ENABLED); } + bool versioning_enabled() const { return (versioning_status() & (BUCKET_VERSIONED | BUCKET_VERSIONS_SUSPENDED)) == BUCKET_VERSIONED; } + bool mfa_enabled() const { return (versioning_status() & BUCKET_MFA_ENABLED) != 0; } bool datasync_flag_enabled() const { return (flags & BUCKET_DATASYNC_DISABLED) == 0; } bool has_swift_versioning() const {