]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/osd/OSDMap.h
update source to 12.2.11
[ceph.git] / ceph / src / osd / OSDMap.h
index 2a5f985c5fc9aa5af57c343bed786389fa093f3d..5e3fe3d28642b9e5e67780161b47c6545548ba10 100644 (file)
@@ -1313,7 +1313,7 @@ public:
 
   int clean_pg_upmaps(
     CephContext *cct,
-    Incremental *pending_inc);
+    Incremental *pending_inc) const;
 
   bool try_pg_upmap(
     CephContext *cct,
@@ -1333,6 +1333,11 @@ public:
 
   int get_osds_by_bucket_name(const string &name, set<int> *osds) const;
 
+  bool have_pg_upmaps(pg_t pg) const {
+    return pg_upmap.count(pg) ||
+      pg_upmap_items.count(pg);
+  }
+
   /*
    * handy helpers to build simple maps...
    */