From: Gabriel BenHanokh Date: Thu, 17 Mar 2022 20:26:58 +0000 (+0200) Subject: Bug-Fix from PR-44370 force setting need_to_destage_allocation_file to True on device... X-Git-Tag: v18.0.0~1201^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f7ebef8a804b8ce193bcbee4284dc28102708f37;p=ceph.git Bug-Fix from PR-44370 force setting need_to_destage_allocation_file to True on device expansion without checking if we work in null-fm mode Signed-off-by: Gabriel Benhanokh --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 92c990760810..ce066fa72952 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7531,10 +7531,11 @@ int BlueStore::expand_devices(ostream& out) } } - // we grow the allocation range, must reflect it in the allocation file - alloc->init_add_free(size0, size - size0); - need_to_destage_allocation_file = true; - + if (fm && fm->is_null_manager()) { + // we grow the allocation range, must reflect it in the allocation file + alloc->init_add_free(size0, size - size0); + need_to_destage_allocation_file = true; + } _close_db_and_around(); // mount in read/write to sync expansion changes