From 270697eccf979e18de49f290caef799ea5f3afb0 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Wed, 1 Aug 2018 06:58:29 +0530 Subject: [PATCH] mds: make has_feature const function Signed-off-by: Jos Collin --- src/mds/mdstypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index b512dcc2d6f06..62a7589aea002 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() { -- 2.39.5