]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Bug-Fix from PR-44370 force setting need_to_destage_allocation_file to True on device...
authorGabriel BenHanokh <benhanokh@gmail.com>
Thu, 17 Mar 2022 20:26:58 +0000 (22:26 +0200)
committerGabriel BenHanokh <gbenhano@redhat.com>
Thu, 24 Mar 2022 08:33:20 +0000 (10:33 +0200)
Signed-off-by: Gabriel Benhanokh <gbenhano@redhat.com>
(cherry picked from commit f7ebef8a804b8ce193bcbee4284dc28102708f37)

src/os/bluestore/BlueStore.cc

index 92c9907608103fafa5704d1919ef3f85af6dfb5c..ce066fa72952b47501904bcae44eadeae4962e01 100644 (file)
@@ -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