]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add utility function has_snaps()
authorMilind Changire <mchangir@redhat.com>
Wed, 24 Aug 2022 10:41:48 +0000 (16:11 +0530)
committerMilind Changire <mchangir@redhat.com>
Mon, 13 Feb 2023 09:37:32 +0000 (15:07 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 87f969f7738e759e5d5b3f55461cf590e9e51e1e)

src/osd/osd_types.h

index 55c1bc582b49f36daf116f46a0233690c5632ac2..0d0e743fc8c8b0f5aadd7327a0603ed8bf0a8f0f 100644 (file)
@@ -1525,6 +1525,10 @@ public:
     grade_table.resize(0);
   }
 
+  bool has_snaps() const {
+    return snaps.size() > 0;
+  }
+
   bool is_stretch_pool() const {
     return peering_crush_bucket_count != 0;
   }