Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jul 5, 2024
1 parent 88b3c7f commit 6a90414
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,18 @@ impl CatalogManager {
) -> MetaResult<()> {
let core = &mut *self.core.lock().await;
let database_core = &mut core.database;
let tables = &mut database_core.tables;
let version = try {
let mut tables = BTreeMapTransaction::new(tables);
let mut tables = BTreeMapTransaction::new(&mut database_core.tables);
let key = (table.database_id, table.schema_id, table.name.clone());
assert!(
!tables.contains_key(&table.id)
&& database_core.in_progress_creation_tracker.contains(&key),
"table must be in creating procedure"
);
database_core.in_progress_creation_tracker.remove(&key);
database_core
.in_progress_creation_streaming_job
.remove(&table.id);

table.stream_job_status = PbStreamJobStatus::Created.into();
tables.insert(table.id, table.clone());
Expand Down

0 comments on commit 6a90414

Please sign in to comment.