Skip to content

Commit

Permalink
ensure transactionality of cancel create table procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Oct 24, 2023
1 parent 447e142 commit 03f8d2c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -929,14 +929,8 @@ impl CatalogManager {
);
return Ok(());
};
table
};

tracing::trace!("cleanup tables for {}", table.id);
{
let core = &mut self.core.lock().await;
let database_core = &mut core.database;

tracing::trace!("cleanup tables for {}", table.id);
let mut table_ids = vec![table.id];
table_ids.extend(internal_table_ids);

Expand All @@ -947,7 +941,8 @@ impl CatalogManager {
assert!(res.is_some());
}
commit_meta!(self, tables)?;
}
table
};

{
let core = &mut self.core.lock().await;
Expand Down

0 comments on commit 03f8d2c

Please sign in to comment.