dout(10) << __func__ << " current 0x" << std::hex << current
<< " expected " << expected << std::dec
<< " ratio " << ratio
- << (log_flushing ? " (async compaction in progress)" : "")
+ << (new_log ? " (async compaction in progress)" : "")
<< dendl;
- if (log_flushing ||
+ if (new_log ||
current < g_conf->bluefs_log_compact_min_size ||
ratio < g_conf->bluefs_log_compact_min_ratio) {
return false;
{
dout(10) << __func__ << dendl;
File *log_file = log_writer->file.get();
+ assert(!new_log);
+ assert(!new_log_writer);
// 1. allocate new log space and jump to it.
old_log_jump_to = log_file->fnode.get_allocated();