mirror of https://github.com/tikv/client-java.git
				
				
				
			[close #459] use target store context instead of proxy store context when calling grpc forward (#458)
Co-authored-by: Jian Zhang <zjsariel@gmail.com> Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									d12856fb12
								
							
						
					
					
						commit
						a86939c86a
					
				|  | @ -336,7 +336,7 @@ public abstract class AbstractRegionStoreClient | ||||||
|       header.put(TiConfiguration.FORWARD_META_DATA_KEY, store.getStore().getAddress()); |       header.put(TiConfiguration.FORWARD_META_DATA_KEY, store.getStore().getAddress()); | ||||||
|       Kvrpcpb.RawGetRequest rawGetRequest = |       Kvrpcpb.RawGetRequest rawGetRequest = | ||||||
|           Kvrpcpb.RawGetRequest.newBuilder() |           Kvrpcpb.RawGetRequest.newBuilder() | ||||||
|               .setContext(region.getReplicaContext(peer)) |               .setContext(region.getReplicaContext(region.getLeader())) | ||||||
|               .setKey(key) |               .setKey(key) | ||||||
|               .build(); |               .build(); | ||||||
|       ListenableFuture<Kvrpcpb.RawGetResponse> task = |       ListenableFuture<Kvrpcpb.RawGetResponse> task = | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue