From 13f7a01f61c122dc800016e16b998f32c708abd3 Mon Sep 17 00:00:00 2001 From: Tomas Kolda Date: Thu, 29 Sep 2016 15:11:32 -0600 Subject: [PATCH] Fixing JNI release build for gcc (#975) --- java/rocksjni/write_batch_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/rocksjni/write_batch_test.cc b/java/rocksjni/write_batch_test.cc index 604b50346..9ba7a430c 100644 --- a/java/rocksjni/write_batch_test.cc +++ b/java/rocksjni/write_batch_test.cc @@ -60,7 +60,9 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents( rocksdb::ParsedInternalKey ikey; memset(reinterpret_cast(&ikey), 0, sizeof(ikey)); bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey); - assert(parsed); + if (!parsed) { + assert(parsed); + } switch (ikey.type) { case rocksdb::kTypeValue: state.append("Put(");