Fix build

This commit is contained in:
Ankit Gupta 2014-04-18 10:47:03 -07:00
parent dc291f5bf0
commit ebd85e8f3a
4 changed files with 4 additions and 19 deletions

View file

@ -422,12 +422,8 @@ ldb: tools/ldb.o $(LIBOBJECTS)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Jni stuff # Jni stuff
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
<<<<<<< HEAD
JNI_NATIVE_SOURCES = ./java/rocksjni/rocksjni.cc ./java/rocksjni/options.cc ./java/rocksjni/write_batch.cc ./java/rocksjni/statistics.cc
=======
JNI_NATIVE_SOURCES = ./java/rocksjni/*.cc
>>>>>>> 1a8abe72768b2b5cea800aa390c28e5ace6a552e
JNI_NATIVE_SOURCES = ./java/rocksjni/*.cc
JAVA_INCLUDE = -I/usr/lib/jvm/java-openjdk/include/ -I/usr/lib/jvm/java-openjdk/include/linux JAVA_INCLUDE = -I/usr/lib/jvm/java-openjdk/include/ -I/usr/lib/jvm/java-openjdk/include/linux
ROCKSDBJNILIB = ./java/librocksdbjni.so ROCKSDBJNILIB = ./java/librocksdbjni.so

View file

@ -1,8 +1,4 @@
<<<<<<< HEAD NATIVE_JAVA_CLASSES = org.rocksdb.RocksDB org.rocksdb.Options org.rocksdb.WriteBatch org.rocksdb.WriteBatchInternal org.rocksdb.WriteBatchTest org.rocksdb.WriteOptions org.rocksdb.BackupableDB org.rocksdb.BackupableDBOptions org.rocksdb.Statistics
NATIVE_JAVA_CLASSES = org.rocksdb.RocksDB org.rocksdb.Options org.rocksdb.WriteBatch org.rocksdb.WriteBatchInternal org.rocksdb.WriteBatchTest org.rocksdb.WriteOptions org.rocksdb.Statistics
=======
NATIVE_JAVA_CLASSES = org.rocksdb.RocksDB org.rocksdb.Options org.rocksdb.WriteBatch org.rocksdb.WriteBatchInternal org.rocksdb.WriteBatchTest org.rocksdb.WriteOptions org.rocksdb.BackupableDB org.rocksdb.BackupableDBOptions
>>>>>>> 1a8abe72768b2b5cea800aa390c28e5ace6a552e
NATIVE_INCLUDE = ./include NATIVE_INCLUDE = ./include
ROCKSDB_JAR = rocksdbjni.jar ROCKSDB_JAR = rocksdbjni.jar

View file

@ -507,7 +507,6 @@ public class Options {
assert(isInitialized()); assert(isInitialized());
return maxBackgroundCompactions(nativeHandle_); return maxBackgroundCompactions(nativeHandle_);
} }
private native int maxBackgroundCompactions(long handle);
/* /*
* Creates statistics object which collects metrics about database operations. * Creates statistics object which collects metrics about database operations.
@ -561,8 +560,6 @@ public class Options {
setMaxBackgroundCompactions(nativeHandle_, maxBackgroundCompactions); setMaxBackgroundCompactions(nativeHandle_, maxBackgroundCompactions);
return this; return this;
} }
private native void setMaxBackgroundCompactions(
long handle, int maxBackgroundCompactions);
/** /**
* Returns the maximum number of concurrent background flush jobs. * Returns the maximum number of concurrent background flush jobs.
@ -1164,14 +1161,11 @@ public class Options {
private native void setDisableSeekCompaction( private native void setDisableSeekCompaction(
long handle, boolean disableSeekCompaction); long handle, boolean disableSeekCompaction);
private native boolean disableSeekCompaction(long handle); private native boolean disableSeekCompaction(long handle);
<<<<<<< HEAD
private native void setMaxBackgroundCompactions( private native void setMaxBackgroundCompactions(
long handle, int maxBackgroundCompactions); long handle, int maxBackgroundCompactions);
private native int maxBackgroundCompactions(long handle); private native int maxBackgroundCompactions(long handle);
private native void createStatistics(long optHandle); private native void createStatistics(long optHandle);
private native long statisticsPtr(long optHandle); private native long statisticsPtr(long optHandle);
=======
>>>>>>> 1a8abe72768b2b5cea800aa390c28e5ace6a552e
long nativeHandle_; long nativeHandle_;
long cacheSize_; long cacheSize_;

View file

@ -172,7 +172,6 @@ class WriteBatchJni {
} }
}; };
<<<<<<< HEAD
class HistogramDataJni { class HistogramDataJni {
public: public:
static jmethodID getConstructorMethodId(JNIEnv* env, jclass jclazz) { static jmethodID getConstructorMethodId(JNIEnv* env, jclass jclazz) {
@ -180,7 +179,8 @@ class HistogramDataJni {
jclazz, "<init>", "(DDDDD)V"); jclazz, "<init>", "(DDDDD)V");
assert(mid != nullptr); assert(mid != nullptr);
return mid; return mid;
======= }
};
class BackupableDBOptionsJni { class BackupableDBOptionsJni {
public: public:
// Get the java class id of org.rocksdb.BackupableDBOptions. // Get the java class id of org.rocksdb.BackupableDBOptions.
@ -211,7 +211,6 @@ class BackupableDBOptionsJni {
env->SetLongField( env->SetLongField(
jobj, getHandleFieldID(env), jobj, getHandleFieldID(env),
reinterpret_cast<jlong>(op)); reinterpret_cast<jlong>(op));
>>>>>>> 1a8abe72768b2b5cea800aa390c28e5ace6a552e
} }
}; };
} // namespace rocksdb } // namespace rocksdb