File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub use key::Key;
1414pub use kvpair:: KvPair ;
1515pub use value:: Value ;
1616
17- struct HexRepr < ' a > ( pub & ' a [ u8 ] ) ;
17+ pub struct HexRepr < ' a > ( pub & ' a [ u8 ] ) ;
1818
1919impl < ' a > fmt:: Display for HexRepr < ' a > {
2020 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ use std::sync::Arc;
77use fail:: fail_point;
88use log:: debug;
99use log:: error;
10+ use log:: info;
1011use log:: warn;
1112use tokio:: sync:: RwLock ;
1213use tokio:: time:: sleep;
1314
1415use crate :: backoff:: Backoff ;
1516use crate :: backoff:: DEFAULT_REGION_BACKOFF ;
1617use crate :: backoff:: OPTIMISTIC_BACKOFF ;
18+ use crate :: kv:: HexRepr ;
1719use crate :: pd:: PdClient ;
1820use crate :: proto:: kvrpcpb;
1921use crate :: proto:: kvrpcpb:: TxnInfo ;
@@ -378,7 +380,7 @@ impl LockResolver {
378380 // 2.2 Txn Rollbacked -- rollback itself, rollback by others, GC tomb etc.
379381 // 2.3 No lock -- pessimistic lock rollback, concurrence prewrite.
380382 let req = new_check_txn_status_request (
381- primary,
383+ primary. clone ( ) ,
382384 txn_id,
383385 caller_start_ts,
384386 current_ts,
@@ -414,6 +416,8 @@ impl LockResolver {
414416
415417 let current = pd_client. clone ( ) . get_timestamp ( ) . await ?;
416418 status. check_ttl ( current) ;
419+ info ! ( "check_txn_status: primary {}, status {:?}" , HexRepr ( & primary) , status) ;
420+
417421 let res = Arc :: new ( status) ;
418422 if res. is_cacheable ( ) {
419423 self . ctx . save_resolved ( txn_id, res. clone ( ) ) . await ;
You can’t perform that action at this time.
0 commit comments