Fixes: https://tracker.ceph.com/issues/54554
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
dout(10) << __func__ << " remove 0x" << std::hex << old_log_jump_to << std::dec
<< " of " << log_file->fnode.extents << dendl;
+
+ vselector->sub_usage(log_file->vselector_hint, log_file->fnode);
+
uint64_t discarded = 0;
mempool::bluefs::vector<bluefs_extent_t> old_extents;
while (discarded < old_log_jump_to) {
++from;
}
- vselector->sub_usage(log_file->vselector_hint, log_file->fnode);
-
// clear the extents from old log file, they are added to new log
log_file->fnode.clear_extents();
// swap the log files. New log file is the log file now.