From: Casey Bodley Date: Mon, 3 Dec 2018 21:49:25 +0000 (-0500) Subject: rgw: add const overload of RGWSI_RADOS::Obj::get_ref() X-Git-Tag: v14.1.0~704^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7e6c23284389d9950862c169c646945008124885;p=ceph-ci.git rgw: add const overload of RGWSI_RADOS::Obj::get_ref() Signed-off-by: Casey Bodley --- diff --git a/src/rgw/services/svc_rados.h b/src/rgw/services/svc_rados.h index 90b421e68d9..0bc3955db01 100644 --- a/src/rgw/services/svc_rados.h +++ b/src/rgw/services/svc_rados.h @@ -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 {