mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
8fe1b9d5a3
commit
f03ba5a298
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user