]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_sal.h
import ceph quincy 17.2.4
[ceph.git] / ceph / src / rgw / rgw_sal.h
index cc551a43fe91cd09d3918bb8095bdffdd55062d8..9d02cbbfdf501bc914e514f411b6580eb72423e7 100644 (file)
@@ -734,7 +734,9 @@ class Bucket {
     bool versioning_enabled() { return info.versioning_enabled(); }
 
     /** Check if a Bucket pointer is empty */
-    static bool empty(Bucket* b) { return (!b || b->empty()); }
+    static bool empty(const Bucket* b) { return (!b || b->empty()); }
+    /** Check if a Bucket unique pointer is empty */
+    static bool empty(const std::unique_ptr<Bucket>& b) { return (!b || b->empty()); }
     /** Clone a copy of this bucket.  Used when modification is necessary of the copy */
     virtual std::unique_ptr<Bucket> clone() = 0;