From aa20aa1dab304c02e77f63ddc87f153aa0583aa8 Mon Sep 17 00:00:00 2001 From: Guoteng Rao <3603304+grao1991@users.noreply.github.com> Date: Sat, 7 Oct 2023 00:21:16 -0700 Subject: [PATCH] [Storage] Increase the threshold of versions between two JMT snapshots. --- storage/aptosdb/src/state_store/buffered_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/aptosdb/src/state_store/buffered_state.rs b/storage/aptosdb/src/state_store/buffered_state.rs index 7c089ac9cd4d0..28bfbf18bc43b 100644 --- a/storage/aptosdb/src/state_store/buffered_state.rs +++ b/storage/aptosdb/src/state_store/buffered_state.rs @@ -23,7 +23,7 @@ use std::{ }; pub(crate) const ASYNC_COMMIT_CHANNEL_BUFFER_SIZE: u64 = 1; -pub(crate) const TARGET_SNAPSHOT_INTERVAL_IN_VERSION: u64 = 20_000; +pub(crate) const TARGET_SNAPSHOT_INTERVAL_IN_VERSION: u64 = 100_000; /// The in-memory buffered state that consists of two pieces: /// `state_until_checkpoint`: The ready-to-commit data in range (last snapshot, latest checkpoint].