diff --git a/java/rocksjni/write_batch.cc b/java/rocksjni/write_batch.cc index 0492ea1be..46e7a6fa0 100644 --- a/java/rocksjni/write_batch.cc +++ b/java/rocksjni/write_batch.cc @@ -206,7 +206,8 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents( options.memtable_factory = factory; rocksdb::MemTable* mem = new rocksdb::MemTable( cmp, rocksdb::ImmutableCFOptions(options), - rocksdb::MemTableOptions(rocksdb::MutableCFOptions(options), options)); + rocksdb::MemTableOptions(rocksdb::MutableCFOptions(options, + rocksdb::ImmutableCFOptions(options)), options)); mem->Ref(); std::string state; rocksdb::ColumnFamilyMemTablesDefault cf_mems_default(mem, &options);