From 2fa0a993b8539f0d336399a9a6b6884b1655c0b8 Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Thu, 5 Jun 2014 13:25:08 +0100 Subject: [PATCH] Fix build --- java/org/rocksdb/BackupableDBOptions.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/org/rocksdb/BackupableDBOptions.java b/java/org/rocksdb/BackupableDBOptions.java index 3132dbcd8..c72b44f8c 100644 --- a/java/org/rocksdb/BackupableDBOptions.java +++ b/java/org/rocksdb/BackupableDBOptions.java @@ -37,10 +37,11 @@ public class BackupableDBOptions extends RocksObject { public BackupableDBOptions(String path, boolean shareTableFiles, boolean sync, boolean destroyOldData, boolean backupLogFiles, long backupRateLimit, long restoreRateLimit) { + super(); + backupRateLimit = (backupRateLimit <= 0) ? 0 : backupRateLimit; restoreRateLimit = (restoreRateLimit <= 0) ? 0 : restoreRateLimit; - - super(); + newBackupableDBOptions(path, shareTableFiles, sync, destroyOldData, backupLogFiles, backupRateLimit, restoreRateLimit); }