We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3369381 commit 5d7e4ceCopy full SHA for 5d7e4ce
store/postgres/src/copy.rs
@@ -195,7 +195,9 @@ impl CopyState {
195
target_block: BlockPtr,
196
) -> Result<CopyState, StoreError> {
197
let tables = TableState::load(conn, src.as_ref(), dst.as_ref())?;
198
- let (finished, unfinished) = tables.into_iter().partition(|table| table.finished());
+ let (finished, mut unfinished): (Vec<_>, Vec<_>) =
199
+ tables.into_iter().partition(|table| table.finished());
200
+ unfinished.sort_by_key(|table| table.dst.object.to_string());
201
Ok(CopyState {
202
src,
203
dst,
0 commit comments