Skip to content

Commit

Permalink
fix(bulkload) follow empiredan advice
Browse files Browse the repository at this point in the history
  • Loading branch information
lupengfan1 committed Jan 13, 2025
1 parent f34680f commit 4aa4c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replica/bulk_load/replica_bulk_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,12 @@ void replica_bulk_loader::download_sst_file(
return;
}
// download file succeed, update progress
download_file_metas.pop_back();
update_bulk_load_download_progress(f_size, f_meta.name);
METRIC_VAR_INCREMENT(bulk_load_download_file_successful_count);
METRIC_VAR_INCREMENT_BY(bulk_load_download_file_bytes, f_size);

// download next file
download_file_metas.pop_back();
if (!download_file_metas.empty()) {
_download_files_task[download_file_metas.back().name] = tasking::enqueue(
LPC_BACKGROUND_BULK_LOAD,
Expand Down

0 comments on commit 4aa4c16

Please sign in to comment.