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) (#523)
Co-authored-by: Jian Zhang <zjsariel@gmail.com> Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Signed-off-by: marsishandsome <marsishandsome@gmail.com> 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
520bcfd50d
commit
3cde9f0cbe
|
|
@ -316,7 +316,7 @@ public abstract class AbstractRegionStoreClient
|
|||
header.put(TiConfiguration.FORWARD_META_DATA_KEY, store.getStore().getAddress());
|
||||
Kvrpcpb.RawGetRequest rawGetRequest =
|
||||
Kvrpcpb.RawGetRequest.newBuilder()
|
||||
.setContext(region.getReplicaContext(peer))
|
||||
.setContext(region.getReplicaContext(region.getLeader()))
|
||||
.setKey(key)
|
||||
.build();
|
||||
ListenableFuture<Kvrpcpb.RawGetResponse> task =
|
||||
|
|
|
|||
Loading…
Reference in New Issue