Refactopr uploadig of index_part.json in create_timeline_replica

This commit is contained in:
Konstantin Knizhnik
2023-06-15 10:39:30 +03:00
parent 77a73ff36f
commit 07c8f70a3b

View File

@@ -1495,6 +1495,15 @@ impl Tenant {
None,
);
// Wait completion of index part upload */
timeline
.remote_client
.as_ref()
.unwrap()
.wait_completion()
.await
.context("wait for index part upload to complete")?;
/* Do we need to perform explicit upload?
// Upload this index_part.json to S3 bucket
upload_index_part(