3
3
use tikv_client_common:: Error ;
4
4
5
5
use crate :: {
6
- backoff:: { DEFAULT_REGION_BACKOFF , OPTIMISTIC_BACKOFF } ,
6
+ backoff:: DEFAULT_REGION_BACKOFF ,
7
7
config:: Config ,
8
8
pd:: PdRpcClient ,
9
9
raw:: lowering:: * ,
@@ -115,7 +115,6 @@ impl Client {
115
115
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
116
116
. single_region ( )
117
117
. await ?
118
- . resolve_lock ( OPTIMISTIC_BACKOFF )
119
118
. retry_region ( DEFAULT_REGION_BACKOFF )
120
119
. post_process_default ( )
121
120
. plan ( ) ;
@@ -146,7 +145,6 @@ impl Client {
146
145
) -> Result < Vec < KvPair > > {
147
146
let request = new_raw_batch_get_request ( keys. into_iter ( ) . map ( Into :: into) , self . cf . clone ( ) ) ;
148
147
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
149
- . resolve_lock ( OPTIMISTIC_BACKOFF )
150
148
. multi_region ( )
151
149
. retry_region ( DEFAULT_REGION_BACKOFF )
152
150
. merge ( Collect )
@@ -177,7 +175,6 @@ impl Client {
177
175
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
178
176
. single_region ( )
179
177
. await ?
180
- . resolve_lock ( OPTIMISTIC_BACKOFF )
181
178
. retry_region ( DEFAULT_REGION_BACKOFF )
182
179
. extract_error ( )
183
180
. plan ( ) ;
@@ -208,7 +205,6 @@ impl Client {
208
205
) -> Result < ( ) > {
209
206
let request = new_raw_batch_put_request ( pairs. into_iter ( ) . map ( Into :: into) , self . cf . clone ( ) ) ;
210
207
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
211
- . resolve_lock ( OPTIMISTIC_BACKOFF )
212
208
. multi_region ( )
213
209
. retry_region ( DEFAULT_REGION_BACKOFF )
214
210
. extract_error ( )
@@ -239,7 +235,6 @@ impl Client {
239
235
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
240
236
. single_region ( )
241
237
. await ?
242
- . resolve_lock ( OPTIMISTIC_BACKOFF )
243
238
. retry_region ( DEFAULT_REGION_BACKOFF )
244
239
. extract_error ( )
245
240
. plan ( ) ;
@@ -268,7 +263,6 @@ impl Client {
268
263
let request =
269
264
new_raw_batch_delete_request ( keys. into_iter ( ) . map ( Into :: into) , self . cf . clone ( ) ) ;
270
265
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
271
- . resolve_lock ( OPTIMISTIC_BACKOFF )
272
266
. multi_region ( )
273
267
. retry_region ( DEFAULT_REGION_BACKOFF )
274
268
. extract_error ( )
@@ -295,7 +289,6 @@ impl Client {
295
289
pub async fn delete_range ( & self , range : impl Into < BoundRange > ) -> Result < ( ) > {
296
290
let request = new_raw_delete_range_request ( range. into ( ) , self . cf . clone ( ) ) ;
297
291
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
298
- . resolve_lock ( OPTIMISTIC_BACKOFF )
299
292
. multi_region ( )
300
293
. retry_region ( DEFAULT_REGION_BACKOFF )
301
294
. extract_error ( )
@@ -437,7 +430,6 @@ impl Client {
437
430
438
431
let request = new_raw_scan_request ( range. into ( ) , limit, key_only, self . cf . clone ( ) ) ;
439
432
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
440
- . resolve_lock ( OPTIMISTIC_BACKOFF )
441
433
. multi_region ( )
442
434
. retry_region ( DEFAULT_REGION_BACKOFF )
443
435
. merge ( Collect )
@@ -469,7 +461,6 @@ impl Client {
469
461
self . cf . clone ( ) ,
470
462
) ;
471
463
let plan = crate :: request:: PlanBuilder :: new ( self . rpc . clone ( ) , request)
472
- . resolve_lock ( OPTIMISTIC_BACKOFF )
473
464
. multi_region ( )
474
465
. retry_region ( DEFAULT_REGION_BACKOFF )
475
466
. merge ( Collect )
0 commit comments