From: Jos Collin Date: Wed, 1 Aug 2018 01:28:29 +0000 (+0530) Subject: mds: make has_feature const function X-Git-Tag: v14.0.1~607^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=270697eccf979e18de49f290caef799ea5f3afb0;p=ceph-ci.git mds: make has_feature const function Signed-off-by: Jos Collin --- diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index b512dcc2d6f..62a7589aea0 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -1164,7 +1164,7 @@ struct session_info_t { EntityName auth_name; client_t get_client() const { return client_t(inst.name.num()); } - bool has_feature(size_t bit) { return client_metadata.features.test(bit); } + bool has_feature(size_t bit) const { return client_metadata.features.test(bit); } const entity_name_t& get_source() const { return inst.name; } void clear_meta() {