From 3ea83daab1de2f97bc75330bb8278ade533c6996 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:16:53 -0600 Subject: [PATCH] v1.17: BigtableUploadService: increment start_slot to prevent rechecks (backport of #33870) (#33886) BigtableUploadService: increment start_slot to prevent rechecks (#33870) Increment start_slot (cherry picked from commit 22503f0ae9f9de9071f05d9049d3de1bf9c88dff) Co-authored-by: Tyera --- ledger/src/bigtable_upload_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/src/bigtable_upload_service.rs b/ledger/src/bigtable_upload_service.rs index 3149eb96a32d8e..0ffb02aac2475c 100644 --- a/ledger/src/bigtable_upload_service.rs +++ b/ledger/src/bigtable_upload_service.rs @@ -117,7 +117,7 @@ impl BigTableUploadService { )); match result { - Ok(last_slot_uploaded) => start_slot = last_slot_uploaded, + Ok(last_slot_uploaded) => start_slot = last_slot_uploaded.saturating_add(1), Err(err) => { warn!("bigtable: upload_confirmed_blocks: {}", err); std::thread::sleep(std::time::Duration::from_secs(2));