Pass prev_record_ptr through zenith.signal file to compute node

This commit is contained in:
Konstantin Knizhnik
2021-07-14 17:25:48 +03:00
parent f6705b7a7d
commit e74b06d999
6 changed files with 41 additions and 7 deletions

View File

@@ -89,7 +89,8 @@ pub trait Timeline: Send + Sync {
fn put_raw_data(&self, tag: ObjectTag, lsn: Lsn, data: &[u8]) -> Result<()>;
/// Like put_wal_record, but with ready-made image of the page.
fn put_page_image(&self, tag: ObjectTag, lsn: Lsn, img: Bytes, update_meta: bool) -> Result<()>;
fn put_page_image(&self, tag: ObjectTag, lsn: Lsn, img: Bytes, update_meta: bool)
-> Result<()>;
/// Truncate relation
fn put_truncation(&self, rel: RelTag, lsn: Lsn, nblocks: u32) -> Result<()>;
@@ -120,6 +121,9 @@ pub trait Timeline: Send + Sync {
fn advance_last_record_lsn(&self, lsn: Lsn);
fn get_last_record_lsn(&self) -> Lsn;
// Like `advance_last_record_lsn`, but points to the start position of last record
fn get_prev_record_lsn(&self) -> Lsn;
///
/// Flush to disk all data that was written with the put_* functions
///