Commit 0427a862 authored by Stefan Richter's avatar Stefan Richter
Browse files

Use StringAppendTESTOperator in rocksjni to avoid quadratic runtime for merge operations

parent 98084910
......@@ -32,6 +32,6 @@ jlong Java_org_rocksdb_StringAppendOperator_newMergeOperatorHandleImpl
(JNIEnv* env, jobject jobj) {
std::shared_ptr<rocksdb::MergeOperator> *op =
new std::shared_ptr<rocksdb::MergeOperator>();
*op = rocksdb::MergeOperators::CreateFromStringId("stringappend");
*op = rocksdb::MergeOperators::CreateFromStringId("stringappendtest");
return reinterpret_cast<jlong>(op);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment