mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
Merge pull request #10967 from stiopaa1/osd_replicatedbackend_moveClasses
osd/ReplicatedBackend: move classes to cc file Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
7794830362
@ -30,6 +30,26 @@ static ostream& _prefix(std::ostream *_dout, ReplicatedBackend *pgb) {
|
||||
return *_dout << pgb->get_parent()->gen_dbg_prefix();
|
||||
}
|
||||
|
||||
struct ReplicatedBackend::C_OSD_RepModifyApply : public Context {
|
||||
ReplicatedBackend *pg;
|
||||
RepModifyRef rm;
|
||||
C_OSD_RepModifyApply(ReplicatedBackend *pg, RepModifyRef r)
|
||||
: pg(pg), rm(r) {}
|
||||
void finish(int r) {
|
||||
pg->sub_op_modify_applied(rm);
|
||||
}
|
||||
};
|
||||
|
||||
struct ReplicatedBackend::C_OSD_RepModifyCommit : public Context {
|
||||
ReplicatedBackend *pg;
|
||||
RepModifyRef rm;
|
||||
C_OSD_RepModifyCommit(ReplicatedBackend *pg, RepModifyRef r)
|
||||
: pg(pg), rm(r) {}
|
||||
void finish(int r) {
|
||||
pg->sub_op_modify_commit(rm);
|
||||
}
|
||||
};
|
||||
|
||||
static void log_subop_stats(
|
||||
PerfCounters *logger,
|
||||
OpRequestRef op, int subop)
|
||||
|
@ -406,24 +406,9 @@ private:
|
||||
};
|
||||
typedef ceph::shared_ptr<RepModify> RepModifyRef;
|
||||
|
||||
struct C_OSD_RepModifyApply : public Context {
|
||||
ReplicatedBackend *pg;
|
||||
RepModifyRef rm;
|
||||
C_OSD_RepModifyApply(ReplicatedBackend *pg, RepModifyRef r)
|
||||
: pg(pg), rm(r) {}
|
||||
void finish(int r) {
|
||||
pg->sub_op_modify_applied(rm);
|
||||
}
|
||||
};
|
||||
struct C_OSD_RepModifyCommit : public Context {
|
||||
ReplicatedBackend *pg;
|
||||
RepModifyRef rm;
|
||||
C_OSD_RepModifyCommit(ReplicatedBackend *pg, RepModifyRef r)
|
||||
: pg(pg), rm(r) {}
|
||||
void finish(int r) {
|
||||
pg->sub_op_modify_commit(rm);
|
||||
}
|
||||
};
|
||||
struct C_OSD_RepModifyApply;
|
||||
struct C_OSD_RepModifyCommit;
|
||||
|
||||
void sub_op_modify_applied(RepModifyRef rm);
|
||||
void sub_op_modify_commit(RepModifyRef rm);
|
||||
bool scrub_supported() { return true; }
|
||||
|
Loading…
Reference in New Issue
Block a user