Skip to content

Commit

Permalink
chore: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Nov 13, 2023
1 parent 713954c commit f0072f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/meta/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ impl TableMetadataManager {
.table_route_manager()
.build_update_txn(table_id, &current_table_route_value, &new_table_route_value)?;

let txn = Txn::merge_all(vec![update_table_route_txn]);

let r = self.kv_backend.txn(txn).await?;
let r = self.kv_backend.txn(update_table_route_txn).await?;

// Checks whether metadata was already updated.
if !r.succeeded {
Expand Down

0 comments on commit f0072f2

Please sign in to comment.