From: xie xingguo Date: Sat, 9 Apr 2016 04:48:22 +0000 (+0800) Subject: osd/ReplicatedPG: fix implementation of register_on_success() X-Git-Tag: v10.2.0~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8465%2Fhead;p=ceph.git osd/ReplicatedPG: fix implementation of register_on_success() We shall push the callbacks into on_success instead, I think. Signed-off-by: xie xingguo --- diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 5384f2dd200a..47a6a1613d3a 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -567,7 +567,7 @@ public: } template void register_on_success(F &&f) { - on_finish.emplace_back(std::move(f)); + on_success.emplace_back(std::move(f)); } template void register_on_applied(F &&f) {