Fix possible OSD crash during sync due to missing min_flushed_journal_sector reset

This commit is contained in:
Vitaliy Filippov
2023-09-16 17:52:17 +03:00
parent e72d4ed1d4
commit 5cadb170b9
4 changed files with 10 additions and 21 deletions
+1
View File
@@ -198,6 +198,7 @@ void blockstore_impl_t::prepare_journal_sector_write(int cur_sector, blockstore_
priv->pending_ops++;
if (!priv->min_flushed_journal_sector)
priv->min_flushed_journal_sector = 1+cur_sector;
assert(priv->min_flushed_journal_sector <= journal.sector_count);
priv->max_flushed_journal_sector = 1+cur_sector;
}