diff options
author | Samuel Just <sam.just@inktank.com> | 2013-02-01 16:42:47 -0800 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-02-20 13:29:19 -0800 |
commit | 359c0dfd298cb1965ebdb6a0ff49e619ed442b04 (patch) | |
tree | d1d5f597452091b734779d0f9922b075b52a38c3 | |
parent | 7fe7eff92eba297fb8702bbe30f03f6f3ae75970 (diff) | |
download | ceph-359c0dfd298cb1965ebdb6a0ff49e619ed442b04.tar.gz |
ReplicatedPG: add intrusive_ptr hooks
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 3 | ||||
-rw-r--r-- | src/osd/ReplicatedPG.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index d23db2884ed..23174b937dd 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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(); } diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index ae506e55074..79b11bd4561 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -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 |