Skip to content

Commit

Permalink
refactor by CR
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshao90 committed Feb 1, 2024
1 parent d8cd286 commit d26235e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions horaemeta/server/cluster/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,9 @@ func (m *managerImpl) DropTable(ctx context.Context, clusterName, schemaName, ta

// If the table is partitioned, delete the table metadata directly.
if table.IsPartitioned() {
_, err = cluster.metadata.DropTableMetadata(ctx,
schemaName,
tableName,
)
_, err = cluster.metadata.DropTableMetadata(ctx, schemaName, tableName)
if err != nil {
return errors.WithMessage(err, "cluster drop table")
return errors.WithMessage(err, "cluster drop table metadata")
}
return nil
}
Expand Down

0 comments on commit d26235e

Please sign in to comment.