]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: add const overload of RGWSI_RADOS::Obj::get_ref()
authorCasey Bodley <cbodley@redhat.com>
Mon, 3 Dec 2018 21:49:25 +0000 (16:49 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 5 Dec 2018 16:16:54 +0000 (11:16 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/services/svc_rados.h

index 90b421e68d963c85d891e4d74be32355a950649a..0bc3955db015177f839d4698a7738cbf773191ff 100644 (file)
@@ -92,9 +92,8 @@ public:
 
     uint64_t get_last_version();
 
-    rgw_rados_ref& get_ref() {
-      return ref;
-    }
+    rgw_rados_ref& get_ref() { return ref; }
+    const rgw_rados_ref& get_ref() const { return ref; }
   };
 
   class Pool {