]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make has_feature const function
authorJos Collin <jcollin@redhat.com>
Wed, 1 Aug 2018 01:28:29 +0000 (06:58 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 10 Aug 2018 12:18:25 +0000 (17:48 +0530)
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/mds/mdstypes.h

index b512dcc2d6f065979f8385008f7329bdba3dea80..62a7589aea002a2085df1108d548d15ca68690c4 100644 (file)
@@ -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() {