diff --git a/src/storage/src/region/writer.rs b/src/storage/src/region/writer.rs index de91c4159a..c042eb7585 100644 --- a/src/storage/src/region/writer.rs +++ b/src/storage/src/region/writer.rs @@ -376,6 +376,7 @@ impl WriterInner { let version = version_control.current(); + let region_id = writer_ctx.shared.id; // table with id less than MIN_USER_TABLE_ID is system table if (region_id >> 32) < 1024 { let wal_header = WalHeader::with_last_manifest_version(version.manifest_version());