From: Samuel Just Date: Thu, 3 Mar 2022 01:10:36 +0000 (-0800) Subject: crimson/common/operation: return intrusive_ptr rather than T::IRef X-Git-Tag: v18.0.0~914^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bdeabe5d9737c1da8e20bd208d220efe97db6c06;p=ceph-ci.git crimson/common/operation: return intrusive_ptr rather than T::IRef Signed-off-by: Samuel Just --- diff --git a/src/crimson/common/operation.h b/src/crimson/common/operation.h index 634d303b4ac..f5b77a50aa1 100644 --- a/src/crimson/common/operation.h +++ b/src/crimson/common/operation.h @@ -330,8 +330,8 @@ public: boost::intrusive::constant_time_size>; template - typename T::IRef create_operation(Args&&... args) { - typename T::IRef op = new T(std::forward(args)...); + auto create_operation(Args&&... args) { + boost::intrusive_ptr op = new T(std::forward(args)...); do_register(&*op); return op; }