@@ -16,7 +16,7 @@ use std::sync::Arc;
1616
1717use databend_common_base:: base:: tokio:: sync:: Mutex ;
1818use databend_common_exception:: ErrorCode ;
19- use databend_common_meta_api:: reply:: txn_reply_to_api_result ;
19+ use databend_common_meta_api:: reply:: unpack_txn_reply ;
2020use databend_common_meta_api:: txn_backoff:: txn_backoff;
2121use databend_common_meta_api:: txn_cond_seq;
2222use databend_common_meta_api:: txn_op_del;
@@ -370,7 +370,7 @@ impl RoleApi for RoleMgr {
370370 if need_transfer {
371371 let txn_req = TxnRequest :: new ( condition. clone ( ) , if_then. clone ( ) ) ;
372372 let tx_reply = self . kv_api . transaction ( txn_req. clone ( ) ) . await ?;
373- let ( succ, _) = txn_reply_to_api_result ( tx_reply) ? ;
373+ let ( succ, _) = unpack_txn_reply ( tx_reply) ;
374374 debug ! (
375375 succ = succ;
376376 "transfer_ownership_to_admin"
@@ -434,7 +434,7 @@ impl RoleApi for RoleMgr {
434434 let txn_req = TxnRequest :: new ( condition. clone ( ) , if_then. clone ( ) ) ;
435435
436436 let tx_reply = self . kv_api . transaction ( txn_req. clone ( ) ) . await ?;
437- let ( succ, _) = txn_reply_to_api_result ( tx_reply) ? ;
437+ let ( succ, _) = unpack_txn_reply ( tx_reply) ;
438438
439439 if succ {
440440 return Ok ( ( ) ) ;
@@ -519,7 +519,7 @@ impl RoleApi for RoleMgr {
519519 let txn_req = TxnRequest :: new ( condition. clone ( ) , if_then. clone ( ) ) ;
520520
521521 let tx_reply = self . kv_api . transaction ( txn_req. clone ( ) ) . await ?;
522- let ( succ, _) = txn_reply_to_api_result ( tx_reply) ? ;
522+ let ( succ, _) = unpack_txn_reply ( tx_reply) ;
523523
524524 if succ {
525525 return Ok ( ( ) ) ;
0 commit comments