Skip to content

Commit

Permalink
allow drop subscription in recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Oct 31, 2024
1 parent 5c0aab6 commit 3b8becc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/meta/src/controller/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2910,6 +2910,7 @@ impl CatalogController {
let inner = self.inner.read().await;
let subscription_objs: Vec<(SubscriptionId, ObjectId, i64, DatabaseId)> =
Subscription::find()
.select_only()
.select_column(subscription::Column::SubscriptionId)
.select_column(subscription::Column::DependentTableId)
.select_column(subscription::Column::RetentionSeconds)
Expand Down
4 changes: 2 additions & 2 deletions src/meta/src/rpc/ddl_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl DdlCommand {
| DdlCommand::DropStreamingJob(_, _, _)
| DdlCommand::DropConnection(_)
| DdlCommand::DropSecret(_)
| DdlCommand::DropSubscription(_, _)
| DdlCommand::AlterName(_, _)
| DdlCommand::AlterObjectOwner(_, _)
| DdlCommand::AlterSetSchema(_, _)
Expand All @@ -186,8 +187,7 @@ impl DdlCommand {
| DdlCommand::CreateSourceWithoutStreamingJob(_)
| DdlCommand::ReplaceTable(_)
| DdlCommand::AlterSourceColumn(_)
| DdlCommand::CreateSubscription(_)
| DdlCommand::DropSubscription(_, _) => false,
| DdlCommand::CreateSubscription(_) => false,
}
}
}
Expand Down

0 comments on commit 3b8becc

Please sign in to comment.