mirror of https://github.com/tikv/client-java.git
Signed-off-by: shiyuhang <1136742008@qq.com>
This commit is contained in:
parent
8936a91a98
commit
24ed9e2b8a
|
|
@ -203,9 +203,11 @@ public class RegionManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
// select a tiflash with RR strategy
|
||||
// select a tiflash with Round-Robin strategy
|
||||
if (tiflashStores.size() > 0) {
|
||||
store = tiflashStores.get(tiflashStoreIndex.getAndIncrement() % tiflashStores.size());
|
||||
store =
|
||||
tiflashStores.get(
|
||||
Math.floorMod(tiflashStoreIndex.getAndIncrement(), tiflashStores.size()));
|
||||
}
|
||||
|
||||
if (store == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue