File tree Expand file tree Collapse file tree 5 files changed +3
-14
lines changed Expand file tree Collapse file tree 5 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ unit-test:
28
28
cargo test --all --no-default-features --features " ${ENABLE_FEATURES} "
29
29
30
30
integration-test :
31
- # MULTI_REGION shall be set manually if needed
32
31
cargo test txn_ --all ${INTEGRATION_TEST_ARGS} -- --nocapture
33
32
cargo test raw_ --all ${INTEGRATION_TEST_ARGS} -- --nocapture
34
33
cargo test misc_ --all ${INTEGRATION_TEST_ARGS} -- --nocapture
Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ mod test {
182
182
|_: & dyn Any | {
183
183
Ok ( Box :: new ( kvrpcpb:: CommitResponse {
184
184
error : Some ( kvrpcpb:: KeyError :: default ( ) ) . into ( ) ,
185
- commit_version : 0 ,
186
185
..Default :: default ( )
187
186
} ) as Box < dyn Any > )
188
187
} ,
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ impl TimestampExt for Timestamp {
35
35
Self {
36
36
physical : version >> PHYSICAL_SHIFT_BITS ,
37
37
logical : version & LOGICAL_MASK ,
38
- // Now we only support global transactions:
39
- // suffix_bits: 0,
38
+ // Now we only support global transactions: suffix_bits: 0,
40
39
..Default :: default ( )
41
40
}
42
41
}
Original file line number Diff line number Diff line change @@ -312,11 +312,10 @@ impl LockResolver {
312
312
let mut txn_ids = Vec :: with_capacity ( txn_infos. len ( ) ) ;
313
313
let mut txn_info_vec = Vec :: with_capacity ( txn_infos. len ( ) ) ;
314
314
for ( txn_id, commit_ts) in txn_infos. into_iter ( ) {
315
+ txn_ids. push ( txn_id) ;
315
316
let mut txn_info = TxnInfo :: default ( ) ;
316
317
txn_info. set_txn ( txn_id) ;
317
318
txn_info. set_status ( commit_ts) ;
318
-
319
- txn_ids. push ( txn_id) ;
320
319
txn_info_vec. push ( txn_info) ;
321
320
}
322
321
let cleaned_region = self
Original file line number Diff line number Diff line change @@ -223,18 +223,11 @@ mod test {
223
223
use tikv_client_proto:: kvrpcpb;
224
224
#[ test]
225
225
fn result_haslocks ( ) {
226
- let mut resp: Result < _ , Error > = Ok ( kvrpcpb:: CommitResponse {
227
- region_error : None . into ( ) ,
228
- error : None . into ( ) ,
229
- commit_version : 0 ,
230
- ..Default :: default ( )
231
- } ) ;
226
+ let mut resp: Result < _ , Error > = Ok ( kvrpcpb:: CommitResponse :: default ( ) ) ;
232
227
assert ! ( resp. key_errors( ) . is_none( ) ) ;
233
228
234
229
let mut resp: Result < _ , Error > = Ok ( kvrpcpb:: CommitResponse {
235
- region_error : None . into ( ) ,
236
230
error : Some ( kvrpcpb:: KeyError :: default ( ) ) . into ( ) ,
237
- commit_version : 0 ,
238
231
..Default :: default ( )
239
232
} ) ;
240
233
assert ! ( resp. key_errors( ) . is_some( ) ) ;
You can’t perform that action at this time.
0 commit comments