Skip to content

Commit 4aa4c16

Browse files
author
lupengfan1
committed
fix(bulkload) follow empiredan advice
1 parent f34680f commit 4aa4c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replica/bulk_load/replica_bulk_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,12 @@ void replica_bulk_loader::download_sst_file(
596596
return;
597597
}
598598
// download file succeed, update progress
599-
download_file_metas.pop_back();
600599
update_bulk_load_download_progress(f_size, f_meta.name);
601600
METRIC_VAR_INCREMENT(bulk_load_download_file_successful_count);
602601
METRIC_VAR_INCREMENT_BY(bulk_load_download_file_bytes, f_size);
603602

604603
// download next file
604+
download_file_metas.pop_back();
605605
if (!download_file_metas.empty()) {
606606
_download_files_task[download_file_metas.back().name] = tasking::enqueue(
607607
LPC_BACKGROUND_BULK_LOAD,

0 commit comments

Comments
 (0)