ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-04-17 14:05:18 -07:00
parent 8fe1b9d5a3
commit f03ba5a298

View File

@ -3710,17 +3710,15 @@ public:
class C_OSD_OpCommit : public Context {
public:
ReplicatedPG *pg;
ReplicatedPGRef pg;
ReplicatedPG::RepGather *repop;
C_OSD_OpCommit(ReplicatedPG *p, ReplicatedPG::RepGather *rg) :
pg(p), repop(rg) {
repop->get();
pg->get(); // we're copying the pointer
}
void finish(int r) {
pg->op_commit(repop);
pg->put();
}
};