File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,7 @@ pub async fn initialize_application_system_table<RT: Runtime>(
307
307
. namespace ( namespace)
308
308
. id ( table. table_name ( ) ) ?
309
309
. tablet_id ;
310
- let mut index_model = IndexModel :: new ( tx) ;
311
- let existing_indexes: BTreeMap < _ , _ > = index_model
310
+ let existing_indexes: BTreeMap < _ , _ > = IndexModel :: new ( tx)
312
311
. all_indexes_on_table ( table_id)
313
312
. await ?
314
313
. into_iter ( )
@@ -373,8 +372,9 @@ pub async fn initialize_application_system_table<RT: Runtime>(
373
372
. any ( |defined_index| defined_index. name == index_name)
374
373
{
375
374
// Existing index is not referenced any more.
376
- // Dry-run trace for now
377
- tracing:: info!( "Would have deleted unused index {}" , index_name) ;
375
+ IndexModel :: new ( tx)
376
+ . drop_system_index ( namespace, index_name)
377
+ . await ?;
378
378
}
379
379
}
380
380
}
You can’t perform that action at this time.
0 commit comments