From 8f5562ffe6957af980f177aaede6cfb9266c3569 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 18 Jul 2012 12:48:09 -0700 Subject: [PATCH] OSD: write_if_dirty during get_or_create_pg after handle_create In the case that the pg is newly created, we will activate during that call, so the info and log will be dirty. Signed-off-by: Samuel Just --- src/osd/OSD.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2e71ea62f032d..8452a9fbaccdc 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1440,6 +1440,7 @@ PG *OSD::get_or_create_pg(const pg_info_t& info, pg_interval_map_t& pi, info.pgid, create, false, role, up, acting, history, pi, *rctx.transaction); pg->handle_create(&rctx); + pg->write_if_dirty(*rctx.transaction); dispatch_context(rctx, pg, osdmap); created++; -- 2.39.5