Handle VM and FSM truncation WAL records in the page server.

Fixes issue #190.

Original patch by Konstantin Knizhnik.
This commit is contained in:
Heikki Linnakangas
2021-05-31 23:36:17 +03:00
parent 1aceea1bdd
commit ac60b68d50
5 changed files with 129 additions and 28 deletions

View File

@@ -20,6 +20,8 @@ pub const ROCKSDB_SPECIAL_FORKNUM: u8 = 50;
// From storage_xlog.h
pub const SMGR_TRUNCATE_HEAP: u32 = 0x0001;
pub const SMGR_TRUNCATE_VM: u32 = 0x0002;
pub const SMGR_TRUNCATE_FSM: u32 = 0x0004;
//
// Constants from visbilitymap.h