Skip to content

Commit

Permalink
fix DropTableRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jul 10, 2023
1 parent 6c9be93 commit a5db619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cluster/src/shard_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ impl ShardOperator {
catalog_name: ctx.catalog,
schema_name: table_info.schema_name.clone(),
table_name: table_info.name.clone(),
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
engine: ctx.engine,
};
let drop_opts = DropOptions {
table_engine: ctx.table_engine,
Expand Down
5 changes: 5 additions & 0 deletions server/src/grpc/meta_event_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ async fn do_open_shard(ctx: HandlerContext, shard_info: ShardInfo) -> Result<()>
catalog: ctx.default_catalog.clone(),
table_engine: ctx.table_engine.clone(),
table_operator: ctx.table_operator.clone(),
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
};

Expand Down Expand Up @@ -335,6 +336,7 @@ async fn do_close_shard(ctx: &HandlerContext, shard_id: ShardId) -> Result<()> {
table_engine: ctx.table_engine.clone(),
table_operator: ctx.table_operator.clone(),
wal_region_closer: ctx.wal_region_closer.clone(),
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
};

Expand Down Expand Up @@ -458,6 +460,7 @@ async fn handle_drop_table_on_shard(
table_engine: ctx.table_engine.clone(),
table_operator: ctx.table_operator.clone(),
updated_table_info,
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
};

Expand Down Expand Up @@ -490,6 +493,7 @@ async fn handle_open_table_on_shard(
table_engine: ctx.table_engine.clone(),
table_operator: ctx.table_operator.clone(),
updated_table_info,
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
};

Expand Down Expand Up @@ -523,6 +527,7 @@ async fn handle_close_table_on_shard(
table_engine: ctx.table_engine.clone(),
table_operator: ctx.table_operator.clone(),
updated_table_info,
// FIXME: the engine type should not use the default one.
engine: ANALYTIC_ENGINE_TYPE.to_string(),
};

Expand Down

0 comments on commit a5db619

Please sign in to comment.