From 582c4b0f74fbd27bd5bb6cdd3189effb62fc8167 Mon Sep 17 00:00:00 2001 From: fyrz Date: Wed, 15 Apr 2015 23:19:41 +0200 Subject: [PATCH] [RocksJava] Fix RateLimiter Tests in 3.10 --- java/src/test/java/org/rocksdb/DBOptionsTest.java | 2 +- java/src/test/java/org/rocksdb/OptionsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/test/java/org/rocksdb/DBOptionsTest.java b/java/src/test/java/org/rocksdb/DBOptionsTest.java index 5f8a8e34c..98e033a83 100644 --- a/java/src/test/java/org/rocksdb/DBOptionsTest.java +++ b/java/src/test/java/org/rocksdb/DBOptionsTest.java @@ -555,7 +555,7 @@ public class DBOptionsTest { try { options = new DBOptions(); RateLimiterConfig rateLimiterConfig = - new GenericRateLimiterConfig(1000, 0, 1); + new GenericRateLimiterConfig(1000, 100 * 1000, 1); options.setRateLimiterConfig(rateLimiterConfig); // Test with parameter initialization anotherOptions = new DBOptions(); diff --git a/java/src/test/java/org/rocksdb/OptionsTest.java b/java/src/test/java/org/rocksdb/OptionsTest.java index 0b510f417..0cba08a2f 100644 --- a/java/src/test/java/org/rocksdb/OptionsTest.java +++ b/java/src/test/java/org/rocksdb/OptionsTest.java @@ -1130,7 +1130,7 @@ public class OptionsTest { RateLimiterConfig rateLimiterConfig; try { options = new Options(); - rateLimiterConfig = new GenericRateLimiterConfig(1000, 0, 1); + rateLimiterConfig = new GenericRateLimiterConfig(1000, 100 * 1000, 1); options.setRateLimiterConfig(rateLimiterConfig); // Test with parameter initialization anotherOptions = new Options();