]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/operation: return intrusive_ptr<T> rather than T::IRef
authorSamuel Just <sjust@redhat.com>
Thu, 3 Mar 2022 01:10:36 +0000 (17:10 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 6 May 2022 02:38:21 +0000 (02:38 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/operation.h

index 634d303b4acfb6900adad5698c006270a2499260..f5b77a50aa176412d62add65da129adc0c2e4290 100644 (file)
@@ -330,8 +330,8 @@ public:
     boost::intrusive::constant_time_size<false>>;
 
   template <typename T, typename... Args>
-  typename T::IRef create_operation(Args&&... args) {
-    typename T::IRef op = new T(std::forward<Args>(args)...);
+  auto create_operation(Args&&... args) {
+    boost::intrusive_ptr<T> op = new T(std::forward<Args>(args)...);
     do_register(&*op);
     return op;
   }