mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-20 06:30:43 +00:00
Bump magic IDs, to distinguish old file format from new
This commit is contained in:
@@ -62,7 +62,7 @@ use zenith_utils::bin_ser::BeSer;
|
||||
use zenith_utils::lsn::Lsn;
|
||||
|
||||
// Magic constant to identify a Zenith delta file
|
||||
pub const DELTA_FILE_MAGIC: u32 = 0x5A616E01;
|
||||
pub const DELTA_FILE_MAGIC: u32 = 0x5A616E11;
|
||||
|
||||
/// Mapping from (key, lsn) -> page/WAL record
|
||||
/// byte ranges in VALUES_CHAPTER
|
||||
|
||||
@@ -44,8 +44,7 @@ use zenith_utils::bin_ser::BeSer;
|
||||
use zenith_utils::lsn::Lsn;
|
||||
|
||||
// Magic constant to identify a Zenith image layer file
|
||||
// FIXME: bump all magics
|
||||
pub const IMAGE_FILE_MAGIC: u32 = 0x5A616E01 + 1;
|
||||
pub const IMAGE_FILE_MAGIC: u32 = 0x5A616E11 + 1;
|
||||
|
||||
/// Mapping from (key, lsn) -> page/WAL record
|
||||
/// byte ranges in VALUES_CHAPTER
|
||||
@@ -101,7 +100,8 @@ pub struct ImageLayerInner {
|
||||
/// If false, the 'index' has not been loaded into memory yet.
|
||||
loaded: bool,
|
||||
|
||||
/// If None, the 'image_type' has not been loaded into memory yet. FIXME
|
||||
/// The underlying (virtual) file handle. None if the layer hasn't been loaded
|
||||
/// yet.
|
||||
book: Option<Book<VirtualFile>>,
|
||||
|
||||
/// offset of each value
|
||||
|
||||
Reference in New Issue
Block a user