mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
Merge pull request #9213 from stiopaa1/replicatedpg_movetoforward
osd/ReplicatedPG.h: remove incorrect use of move Reviewed-by: Adam Emerson <aemerson@redhat.com> Reviewed-by: Samuel Just <sjust@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
f7ddec3c58
@ -555,19 +555,19 @@ public:
|
||||
list<std::function<void()>> on_success;
|
||||
template <typename F>
|
||||
void register_on_finish(F &&f) {
|
||||
on_finish.emplace_back(std::move(f));
|
||||
on_finish.emplace_back(std::forward<F>(f));
|
||||
}
|
||||
template <typename F>
|
||||
void register_on_success(F &&f) {
|
||||
on_success.emplace_back(std::move(f));
|
||||
on_success.emplace_back(std::forward<F>(f));
|
||||
}
|
||||
template <typename F>
|
||||
void register_on_applied(F &&f) {
|
||||
on_applied.emplace_back(std::move(f));
|
||||
on_applied.emplace_back(std::forward<F>(f));
|
||||
}
|
||||
template <typename F>
|
||||
void register_on_commit(F &&f) {
|
||||
on_committed.emplace_back(std::move(f));
|
||||
on_committed.emplace_back(std::forward<F>(f));
|
||||
}
|
||||
|
||||
bool sent_ack;
|
||||
|
Loading…
Reference in New Issue
Block a user