mirror of https://github.com/tikv/client-java.git
* upgrade kvproto to fix batch put Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * use pingcap kvproto Signed-off-by: iosmanthus <myosmanthustree@gmail.com> Co-authored-by: Jian Zhang <zjsariel@gmail.com>
This commit is contained in:
parent
19a9ab0ae3
commit
5dbfe03b2c
|
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
kvproto_hash=d62ddcee4ccd95f19f3ffa89c2832f2fb81030ca
|
||||
kvproto_hash=d1a140660c39b03e549e92933b6591a9aadc62aa
|
||||
raft_rs_hash=b9891b673573fad77ebcf9bbe0969cf945841926
|
||||
tipb_hash=c4d518eb1d60c21f05b028b36729e64610346dac
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ import org.tikv.txn.exception.LockException;
|
|||
|
||||
/** Note that RegionStoreClient itself is not thread-safe */
|
||||
public class RegionStoreClient extends AbstractRegionStoreClient {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(RegionStoreClient.class);
|
||||
@VisibleForTesting public final AbstractLockResolverClient lockResolverClient;
|
||||
private final TiStoreType storeType;
|
||||
|
|
@ -1042,6 +1043,7 @@ public class RegionStoreClient extends AbstractRegionStoreClient {
|
|||
RawBatchPutRequest.newBuilder()
|
||||
.setContext(makeContext(storeType))
|
||||
.addAllPairs(kvPairs)
|
||||
.setTtl(ttl)
|
||||
.addTtls(ttl)
|
||||
.setForCas(atomicForCAS)
|
||||
.build();
|
||||
|
|
@ -1232,6 +1234,7 @@ public class RegionStoreClient extends AbstractRegionStoreClient {
|
|||
}
|
||||
|
||||
public static class RegionStoreClientBuilder {
|
||||
|
||||
private final TiConfiguration conf;
|
||||
private final ChannelFactory channelFactory;
|
||||
private final RegionManager regionManager;
|
||||
|
|
|
|||
Loading…
Reference in New Issue