fixed begin lsn smaller then end lsn when there is no log on disk

This commit is contained in:
HaHaJeff
2022-11-11 12:09:49 +00:00
committed by wangzelin.wzl
parent d2466c38ad
commit 621edb46ad
2 changed files with 6 additions and 2 deletions

View File

@ -135,6 +135,7 @@ int LogEngine::init(const int64_t palf_id,
alloc_mgr_ = alloc_mgr;
log_io_worker_ = log_io_worker;
palf_epoch_ = palf_epoch;
base_lsn_for_block_gc_ = log_meta.get_log_snapshot_meta().base_lsn_;
is_inited_ = true;
PALF_LOG(INFO, "LogEngine init success", K(ret), K(palf_id), K(base_dir), K(palf_epoch));
}