]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: add intrusive_ptr hooks
authorSamuel Just <sam.just@inktank.com>
Sat, 2 Feb 2013 00:42:47 +0000 (16:42 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 20 Feb 2013 21:29:19 +0000 (13:29 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index d23db2884edf22eb255e4c7a52bef711ef1ce984..23174b937dd91848584cdf3d02928dbd914e6770 100644 (file)
@@ -7581,4 +7581,5 @@ boost::statechart::result ReplicatedPG::WaitingOnReplicas::react(const SnapTrim&
   return transit< NotTrimming >();
 }
 
-
+void intrusive_ptr_add_ref(ReplicatedPG *pg) { pg->get(); }
+void intrusive_ptr_release(ReplicatedPG *pg) { pg->put(); }
index ae506e5507463215bd1e50a349b03904fa93a0ba..79b11bd4561392bb7980e29503f2a5746dd60780 100644 (file)
@@ -1151,4 +1151,7 @@ inline ostream& operator<<(ostream& out, ReplicatedPG::AccessMode& mode)
   return out;
 }
 
+void intrusive_ptr_add_ref(ReplicatedPG *pg);
+void intrusive_ptr_release(ReplicatedPG *pg);
+
 #endif