]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/SnapMapper: is_mapping() to be public
authorMatan Breizman <mbreizma@redhat.com>
Mon, 12 Feb 2024 09:32:46 +0000 (09:32 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 7 May 2024 10:08:12 +0000 (13:08 +0300)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit d489704acdc3e6abaa337245de8ea312cefe6516)

src/osd/SnapMapper.h

index a0a4cd3221b9ccda5dfab94f91a2cdf168c8ffc7..70d1b6c39add78a977f3a3695ed80be37bcdf4b0 100644 (file)
@@ -256,8 +256,6 @@ private:
   std::pair<std::string, ceph::buffer::list> to_raw(
     const std::pair<snapid_t, hobject_t> &to_map) const;
 
-  static bool is_mapping(const std::string &to_test);
-
   static std::pair<snapid_t, hobject_t> from_raw(
     const std::pair<std::string, ceph::buffer::list> &image);
 
@@ -317,6 +315,8 @@ private:
     return std::string(buf, r) + '_';
   }
 
+  static bool is_mapping(const std::string &to_test);
+
   uint32_t mask_bits;
   const uint32_t match;
   std::string last_key_checked;