]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: update store with options after pg is created
authorKefu Chai <kchai@redhat.com>
Mon, 22 Jan 2018 05:08:48 +0000 (13:08 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jan 2018 19:53:43 +0000 (20:53 +0100)
Fixes: http://tracker.ceph.com/issues/22419
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 43b2e512e61319f14f7390d063d66f7a2a568b4d)

Conflicts:
    src/osd/PG.cc (omitted immediately preceding write_if_dirty() call
        because fa7818aefa92b4e9e067945c33f96d520e885f4e not backported to
        luminous)

src/osd/PG.cc

index e7e098f583d5b3b431d8b0ea619608d8fe838c76..c4c0ef7c561cf625bb6f2e42ad6deb34981a3671 100644 (file)
@@ -5949,6 +5949,10 @@ void PG::handle_create(RecoveryCtx *rctx)
   recovery_state.handle_event(evt, rctx);
   ActMap evt2;
   recovery_state.handle_event(evt2, rctx);
+
+  rctx->on_applied->add(make_lambda_context([this]() {
+    update_store_with_options();
+  }));
 }
 
 void PG::handle_query_state(Formatter *f)