]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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, 21 Nov 2022 10:03:03 +0000 (15:33 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/osd/osd_types.h

index f4a585362fa6c32dc70cc782526a1e72f031ada5..18ca39fc61340623391bde24936ed72376443401 100644 (file)
@@ -1495,6 +1495,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;
   }