From 51868a8d401b7eaed129349405186b5e059bcf22 Mon Sep 17 00:00:00 2001 From: Siddharth kumar Date: Fri, 5 Jul 2024 23:17:46 +0530 Subject: [PATCH 1/2] size_in_bytes change --- crates/core/src/kernel/snapshot/log_segment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/kernel/snapshot/log_segment.rs b/crates/core/src/kernel/snapshot/log_segment.rs index cfdbf2cb8a..7f12329fad 100644 --- a/crates/core/src/kernel/snapshot/log_segment.rs +++ b/crates/core/src/kernel/snapshot/log_segment.rs @@ -377,7 +377,7 @@ struct CheckpointMetadata { /// The number of fragments if the last checkpoint was written in multiple parts. pub(crate) parts: Option, /// The number of bytes of the checkpoint. - pub(crate) size_in_bytes: Option, + pub(crate) size_in_bytes: Option, /// The number of AddFile actions in the checkpoint. pub(crate) num_of_add_files: Option, /// The schema of the checkpoint file. From 625ee8d4bfd801365f5555eee26c3b6419c74c35 Mon Sep 17 00:00:00 2001 From: Siddharth kumar Date: Fri, 5 Jul 2024 23:29:35 +0530 Subject: [PATCH 2/2] extra fields --- crates/core/src/kernel/snapshot/log_segment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/kernel/snapshot/log_segment.rs b/crates/core/src/kernel/snapshot/log_segment.rs index 7f12329fad..6045bf410d 100644 --- a/crates/core/src/kernel/snapshot/log_segment.rs +++ b/crates/core/src/kernel/snapshot/log_segment.rs @@ -373,13 +373,13 @@ struct CheckpointMetadata { #[allow(unreachable_pub)] // used by acceptance tests (TODO make an fn accessor?) pub version: i64, /// The number of actions that are stored in the checkpoint. - pub(crate) size: i32, + pub(crate) size: i64, /// The number of fragments if the last checkpoint was written in multiple parts. pub(crate) parts: Option, /// The number of bytes of the checkpoint. pub(crate) size_in_bytes: Option, /// The number of AddFile actions in the checkpoint. - pub(crate) num_of_add_files: Option, + pub(crate) num_of_add_files: Option, /// The schema of the checkpoint file. pub(crate) checkpoint_schema: Option, /// The checksum of the last checkpoint JSON.