diff --git a/core/src/bigtable_upload_service.rs b/core/src/bigtable_upload_service.rs index 693e8c23e7..1d423b1486 100644 --- a/core/src/bigtable_upload_service.rs +++ b/core/src/bigtable_upload_service.rs @@ -54,11 +54,16 @@ impl BigTableUploadService { .unwrap() .highest_confirmed_root(); + if max_confirmed_root == starting_slot { + std::thread::sleep(std::time::Duration::from_secs(1)); + continue; + } + let result = runtime.block_on(solana_ledger::bigtable_upload::upload_confirmed_blocks( blockstore.clone(), bigtable_ledger_storage.clone(), starting_slot, - None, + Some(max_confirmed_root), true, )); diff --git a/ledger/src/bigtable_upload.rs b/ledger/src/bigtable_upload.rs index a580a07976..fe347a1e98 100644 --- a/ledger/src/bigtable_upload.rs +++ b/ledger/src/bigtable_upload.rs @@ -139,7 +139,7 @@ pub async fn upload_confirmed_blocks( } }; - if i % NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL == 0 { + if i > 0 && i % NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL == 0 { info!( "{}% of blocks processed ({}/{})", i * 100 / blocks_to_upload.len(),