]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: open bluestore in read only mode during device expansion
authorJoshua Blanch <joshua.blanch@clyso.com>
Mon, 16 Mar 2026 17:29:14 +0000 (17:29 +0000)
committerJoshua Blanch <joshua.blanch@clyso.com>
Thu, 23 Apr 2026 15:05:55 +0000 (15:05 +0000)
Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
src/os/bluestore/BlueStore.cc

index 1d5bc522b8005c843246d72ecb342e2e3334aac6..9aaec54cf889a0df814620ac7249845090eb14e9 100644 (file)
@@ -9204,11 +9204,8 @@ int BlueStore::expand_devices(ostream& out)
     // from the out-of-space state at DB/shared volume(s)
     // Opening in R/W mode might cause extra space allocation
     // which is effectively a show stopper for volume expansion.
-    r = _open_db_and_around(false);
-    if (r < 0) {
-      derr << __func__ << " failed to open db: " << cpp_strerror(r) << dendl;
-      return r;
-    }
+    r = _open_db_and_around(true);
+    ceph_assert(r == 0);
     need_to_close = true;
   }