@@ -94,7 +94,7 @@ async fn txn_cleanup_locks_batch_size() -> Result<()> {
9494
9595 init ( ) . await ?;
9696 let scenario = FailScenario :: setup ( ) ;
97- let full_range = vec ! [ ] ..;
97+ let full_range = ..;
9898
9999 fail:: cfg ( "after-prewrite" , "return" ) . unwrap ( ) ;
100100 fail:: cfg ( "before-cleanup-locks" , "return" ) . unwrap ( ) ;
@@ -113,10 +113,10 @@ async fn txn_cleanup_locks_batch_size() -> Result<()> {
113113 batch_size : 4 ,
114114 } ;
115115 let res = client
116- . cleanup_locks ( & safepoint , full_range , options)
116+ . cleanup_locks ( full_range , & safepoint , options)
117117 . await ?;
118118
119- assert_eq ! ( res. meet_locks , keys. len( ) ) ;
119+ assert_eq ! ( res. resolved_locks , keys. len( ) ) ;
120120 assert_eq ! ( count_locks( & client) . await ?, keys. len( ) ) ;
121121
122122 scenario. teardown ( ) ;
@@ -130,7 +130,7 @@ async fn txn_cleanup_async_commit_locks() -> Result<()> {
130130
131131 init ( ) . await ?;
132132 let scenario = FailScenario :: setup ( ) ;
133- let full_range = vec ! [ ] ..;
133+ let full_range = ..;
134134
135135 // no commit
136136 {
@@ -150,7 +150,7 @@ async fn txn_cleanup_async_commit_locks() -> Result<()> {
150150 ..Default :: default ( )
151151 } ;
152152 client
153- . cleanup_locks ( & safepoint , full_range . clone ( ) , options)
153+ . cleanup_locks ( full_range , & safepoint , options)
154154 . await ?;
155155
156156 must_committed ( & client, keys) . await ;
@@ -177,7 +177,7 @@ async fn txn_cleanup_async_commit_locks() -> Result<()> {
177177 ..Default :: default ( )
178178 } ;
179179 client
180- . cleanup_locks ( & safepoint , full_range . clone ( ) , options)
180+ . cleanup_locks ( full_range , & safepoint , options)
181181 . await ?;
182182
183183 must_committed ( & client, keys) . await ;
@@ -196,7 +196,7 @@ async fn txn_cleanup_async_commit_locks() -> Result<()> {
196196 ..Default :: default ( )
197197 } ;
198198 client
199- . cleanup_locks ( & safepoint , full_range , options)
199+ . cleanup_locks ( full_range , & safepoint , options)
200200 . await ?;
201201
202202 must_committed ( & client, keys) . await ;
@@ -240,17 +240,17 @@ async fn txn_cleanup_range_async_commit_locks() -> Result<()> {
240240 ..Default :: default ( )
241241 } ;
242242 let res = client
243- . cleanup_locks ( & safepoint , start_key..end_key, options)
243+ . cleanup_locks ( start_key..end_key, & safepoint , options)
244244 . await ?;
245245
246- assert_eq ! ( res. meet_locks , keys. len( ) - 3 ) ;
246+ assert_eq ! ( res. resolved_locks , keys. len( ) - 3 ) ;
247247
248248 // cleanup all locks to avoid affecting following cases.
249249 let options = ResolveLocksOptions {
250250 async_commit_only : false ,
251251 ..Default :: default ( )
252252 } ;
253- client. cleanup_locks ( & safepoint , vec ! [ ] .. , options) . await ?;
253+ client. cleanup_locks ( .. , & safepoint , options) . await ?;
254254 must_committed ( & client, keys) . await ;
255255 assert_eq ! ( count_locks( & client) . await ?, 0 ) ;
256256
@@ -265,7 +265,7 @@ async fn txn_cleanup_2pc_locks() -> Result<()> {
265265
266266 init ( ) . await ?;
267267 let scenario = FailScenario :: setup ( ) ;
268- let full_range = vec ! [ ] ..;
268+ let full_range = ..;
269269
270270 // no commit
271271 {
@@ -286,7 +286,7 @@ async fn txn_cleanup_2pc_locks() -> Result<()> {
286286 ..Default :: default ( )
287287 } ;
288288 client
289- . cleanup_locks ( & safepoint , full_range . clone ( ) , options)
289+ . cleanup_locks ( full_range , & safepoint , options)
290290 . await ?;
291291 assert_eq ! ( count_locks( & client) . await ?, keys. len( ) ) ;
292292 }
@@ -295,7 +295,7 @@ async fn txn_cleanup_2pc_locks() -> Result<()> {
295295 ..Default :: default ( )
296296 } ;
297297 client
298- . cleanup_locks ( & safepoint , full_range . clone ( ) , options)
298+ . cleanup_locks ( full_range , & safepoint , options)
299299 . await ?;
300300
301301 must_rollbacked ( & client, keys) . await ;
@@ -315,7 +315,7 @@ async fn txn_cleanup_2pc_locks() -> Result<()> {
315315 ..Default :: default ( )
316316 } ;
317317 client
318- . cleanup_locks ( & safepoint , full_range , options)
318+ . cleanup_locks ( full_range , & safepoint , options)
319319 . await ?;
320320
321321 must_committed ( & client, keys) . await ;
0 commit comments