]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: update volume selector after recovering BlueFS WAL in
authorIgor Fedotov <igor.fedotov@croit.io>
Wed, 11 Feb 2026 16:52:20 +0000 (19:52 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Thu, 19 Feb 2026 15:37:26 +0000 (18:37 +0300)
envelope mode.

Fixes: https://tracker.ceph.com/issues/74765
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 7807e11ee411192563fa256143bce9a454ccf5f1)

src/os/bluestore/BlueFS.cc

index 589939f9bdf4c5da2b9ebf930f258e1bc26e4b76..73c3ace4118f6ac1bd4ebcbf3b4e5e19a20e3876 100644 (file)
@@ -2511,7 +2511,10 @@ void BlueFS::_envmode_index_file(
   }
   file->envelopes_indexed = true;
   file->fnode.content_size = env_ofs;
+  // we need to update volume selector as file gets updated size at this point
+  vselector->sub_usage(file->vselector_hint, file->fnode);
   file->fnode.size = scan_ofs;
+  vselector->add_usage(file->vselector_hint, file->fnode);
   delete h;
 }