]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: update store with options after pg is created 20044/head
authorKefu Chai <kchai@redhat.com>
Mon, 22 Jan 2018 05:08:48 +0000 (13:08 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Jan 2018 08:10:38 +0000 (16:10 +0800)
Fixes: http://tracker.ceph.com/issues/22419
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PG.cc

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