mirror of
https://github.com/ceph/ceph
synced 2025-02-16 07:17:21 +00:00
osd/OSD: pass op() params by const in PGQueueable
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
This commit is contained in:
parent
9eee5eba6d
commit
d9bd6654f2
@ -159,15 +159,15 @@ static ostream& _prefix(std::ostream* _dout, int whoami, epoch_t epoch) {
|
||||
return *_dout << "osd." << whoami << " " << epoch << " ";
|
||||
}
|
||||
|
||||
void PGQueueable::RunVis::operator()(OpRequestRef &op) {
|
||||
void PGQueueable::RunVis::operator()(const OpRequestRef &op) {
|
||||
return osd->dequeue_op(pg, op, handle);
|
||||
}
|
||||
|
||||
void PGQueueable::RunVis::operator()(PGSnapTrim &op) {
|
||||
void PGQueueable::RunVis::operator()(const PGSnapTrim &op) {
|
||||
return pg->snap_trimmer(op.epoch_queued);
|
||||
}
|
||||
|
||||
void PGQueueable::RunVis::operator()(PGScrub &op) {
|
||||
void PGQueueable::RunVis::operator()(const PGScrub &op) {
|
||||
return pg->scrub(op.epoch_queued, handle);
|
||||
}
|
||||
|
||||
|
@ -357,9 +357,9 @@ class PGQueueable {
|
||||
ThreadPool::TPHandle &handle;
|
||||
RunVis(OSD *osd, PGRef &pg, ThreadPool::TPHandle &handle)
|
||||
: osd(osd), pg(pg), handle(handle) {}
|
||||
void operator()(OpRequestRef &op);
|
||||
void operator()(PGSnapTrim &op);
|
||||
void operator()(PGScrub &op);
|
||||
void operator()(const OpRequestRef &op);
|
||||
void operator()(const PGSnapTrim &op);
|
||||
void operator()(const PGScrub &op);
|
||||
};
|
||||
public:
|
||||
// cppcheck-suppress noExplicitConstructor
|
||||
|
Loading…
Reference in New Issue
Block a user