From 413b3e7e54d3fa7d5555c8f716a9f54f6d805653 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 9 Apr 2016 12:48:22 +0800 Subject: [PATCH] osd/ReplicatedPG: fix implementation of register_on_success() We shall push the callbacks into on_success instead, I think. Signed-off-by: xie xingguo --- src/osd/ReplicatedPG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 5384f2dd200a3..47a6a1613d3a6 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) { -- 2.39.5