Skip to content

Commit 4afe140

Browse files
ldanilekConvex, Inc.
authored andcommitted
[snapshot import] infer file storage table number from import (#31156)
GitOrigin-RevId: 53100028f309c0978a281308015ef46d316543b5
1 parent 8d92f7c commit 4afe140

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/application/src/snapshot_import.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ async fn import_single_table<RT: Runtime>(
22912291
// No more tables to import.
22922292
None => return Ok(None),
22932293
};
2294-
let mut table_number_from_docs = table_number_for_import(objects.as_mut()).await;
2294+
let table_number_from_docs = table_number_for_import(objects.as_mut()).await;
22952295
if let Some(import_id) = import_id {
22962296
best_effort_update_progress_message(
22972297
database,
@@ -2312,8 +2312,6 @@ async fn import_single_table<RT: Runtime>(
23122312
let table_name = &mut component_and_table.1;
23132313
if *table_name == *FILE_STORAGE_VIRTUAL_TABLE {
23142314
*table_name = FILE_STORAGE_TABLE.clone();
2315-
// Infer table number from existing table.
2316-
table_number_from_docs = None;
23172315
}
23182316
let (component_path, table_name) = &component_and_table;
23192317

0 commit comments

Comments
 (0)