From ca52a67cfb403072bec5a17e2737660690278467 Mon Sep 17 00:00:00 2001 From: fyrz Date: Sat, 31 Jan 2015 00:21:45 +0100 Subject: [PATCH] [RocksJava] Deprecate setSkipLogErrorOnRecovery - see: 62ad0a9b19f0be4cefa70b6b32876e764b7f3c11 --- java/org/rocksdb/DBOptions.java | 2 ++ java/org/rocksdb/DBOptionsInterface.java | 6 ++++++ java/org/rocksdb/Options.java | 2 ++ 3 files changed, 10 insertions(+) diff --git a/java/org/rocksdb/DBOptions.java b/java/org/rocksdb/DBOptions.java index e3614f463b..fb8f27bc48 100644 --- a/java/org/rocksdb/DBOptions.java +++ b/java/org/rocksdb/DBOptions.java @@ -464,6 +464,7 @@ public class DBOptions extends RocksObject implements DBOptionsInterface { } @Override + @Deprecated public DBOptions setSkipLogErrorOnRecovery(boolean skip) { assert(isInitialized()); setSkipLogErrorOnRecovery(nativeHandle_, skip); @@ -471,6 +472,7 @@ public class DBOptions extends RocksObject implements DBOptionsInterface { } @Override + @Deprecated public boolean skipLogErrorOnRecovery() { assert(isInitialized()); return skipLogErrorOnRecovery(nativeHandle_); diff --git a/java/org/rocksdb/DBOptionsInterface.java b/java/org/rocksdb/DBOptionsInterface.java index 83d7ba1e1b..38c0338e45 100644 --- a/java/org/rocksdb/DBOptionsInterface.java +++ b/java/org/rocksdb/DBOptionsInterface.java @@ -707,7 +707,10 @@ public interface DBOptionsInterface { * * @param skip true if log corruption errors are skipped during recovery. * @return the instance of the current Object. + * + * @deprecated will be removed in RocksDB 3.11.0. Not used anymore. */ + @Deprecated Object setSkipLogErrorOnRecovery(boolean skip); /** @@ -716,7 +719,10 @@ public interface DBOptionsInterface { * Default: false * * @return true if log corruption errors are skipped during recovery. + * + * @deprecated will be removed in RocksDB 3.11.0. Not used anymore. */ + @Deprecated boolean skipLogErrorOnRecovery(); /** diff --git a/java/org/rocksdb/Options.java b/java/org/rocksdb/Options.java index ac4037508e..56385154d3 100644 --- a/java/org/rocksdb/Options.java +++ b/java/org/rocksdb/Options.java @@ -551,12 +551,14 @@ public class Options extends RocksObject } @Override + @Deprecated public boolean skipLogErrorOnRecovery() { assert(isInitialized()); return skipLogErrorOnRecovery(nativeHandle_); } @Override + @Deprecated public Options setSkipLogErrorOnRecovery(boolean skip) { assert(isInitialized()); setSkipLogErrorOnRecovery(nativeHandle_, skip);