From: Kefu Chai Date: Mon, 22 Jan 2018 05:08:48 +0000 (+0800) Subject: osd: update store with options after pg is created X-Git-Tag: v13.0.2~464^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20044%2Fhead;p=ceph.git osd: update store with options after pg is created Fixes: http://tracker.ceph.com/issues/22419 Signed-off-by: Kefu Chai --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index a52cb65c3d18..a770b7f15071 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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)