From 43b2e512e61319f14f7390d063d66f7a2a568b4d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 22 Jan 2018 13:08:48 +0800 Subject: [PATCH] osd: update store with options after pg is created Fixes: http://tracker.ceph.com/issues/22419 Signed-off-by: Kefu Chai --- src/osd/PG.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index a52cb65c3d1..a770b7f1507 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) -- 2.39.5