]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix implementation of register_on_success() 8465/head 8612/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 9 Apr 2016 04:48:22 +0000 (12:48 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 15 Apr 2016 12:47:41 +0000 (20:47 +0800)
We shall push the callbacks into on_success instead, I think.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/ReplicatedPG.h

index 5384f2dd200a354e19ca49c22865320f62635dcf..47a6a1613d3a66126770aac545e1bb514a47ac63 100644 (file)
@@ -567,7 +567,7 @@ public:
     }
     template <typename F>
     void register_on_success(F &&f) {
-      on_finish.emplace_back(std::move(f));
+      on_success.emplace_back(std::move(f));
     }
     template <typename F>
     void register_on_applied(F &&f) {