Skip to content

Commit 5d75dc6

Browse files
committed
store: Log 'starting to copy table' only once
1 parent b3543bb commit 5d75dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/src/copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ impl CopyTableWorker {
694694
use Status::*;
695695

696696
let conn = &mut self.conn;
697+
progress.start_table(&self.table);
697698
while !self.table.finished() {
698699
// It is important that this check happens outside the write
699700
// transaction so that we do not hold on to locks acquired
@@ -720,7 +721,6 @@ impl CopyTableWorker {
720721
}
721722
}
722723

723-
progress.start_table(&self.table);
724724
let status = {
725725
loop {
726726
if progress.is_cancelled() {

0 commit comments

Comments
 (0)