Fix bound

This commit is contained in:
Andrea Cavalli 2021-12-26 20:24:02 +01:00
parent 2b09f5a738
commit 3ae3bd7944

View File

@ -162,7 +162,7 @@ public final class OptimisticRocksDBColumn extends AbstractRocksDBColumn<Optimis
long retryNs = 1000000L * retryTime.getPageLimit(retries);
// +- 30%
retryNs = retryNs + ThreadLocalRandom.current().nextLong(retryNs * 30L / 100L, -retryNs * 30L / 100L);
retryNs = retryNs + ThreadLocalRandom.current().nextLong(-retryNs * 30L / 100L, retryNs * 30L / 100L);
if (retries >= 5 && retries % 5 == 0 || ALWAYS_PRINT_OPTIMISTIC_RETRIES) {
logger.warn(MARKER_ROCKSDB, "Failed optimistic transaction {} (update):"