From e5b535bbee3828d9fba122d01e446cd85cc73ea2 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Mon, 13 Nov 2023 09:58:45 +0000 Subject: [PATCH] chore: remove redundant code --- src/common/meta/src/key.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/meta/src/key.rs b/src/common/meta/src/key.rs index 5970868f1a4e..fa06558a9ba3 100644 --- a/src/common/meta/src/key.rs +++ b/src/common/meta/src/key.rs @@ -660,9 +660,7 @@ impl TableMetadataManager { .table_route_manager() .build_update_txn(table_id, ¤t_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 {