]> 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>
Thu, 9 Feb 2023 11:00:16 +0000 (16:30 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 87f969f7738e759e5d5b3f55461cf590e9e51e1e)

src/osd/osd_types.h

index 93645c5f218c706155c25155da2f593b105480fe..8839986d50a478487a5dbefb41fc04263ef4ecea 100644 (file)
@@ -1486,6 +1486,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;
   }