From 652db51a318cff13f6df5ffce4a3dae6439ea4e2 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 18 Mar 2015 15:08:31 -0700 Subject: [PATCH] Fix compilation error in rocksjni/write_batch_test.cc Summary: Fix compilation error in rocksjni/write_batch_test.cc Test Plan: make rocksdbjava -j32 Reviewers: sdong, igor, rven Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D35343 --- java/rocksjni/write_batch_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/rocksjni/write_batch_test.cc b/java/rocksjni/write_batch_test.cc index d78178211..ff7aff836 100644 --- a/java/rocksjni/write_batch_test.cc +++ b/java/rocksjni/write_batch_test.cc @@ -60,7 +60,7 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents( for (iter->SeekToFirst(); iter->Valid(); iter->Next()) { rocksdb::ParsedInternalKey ikey; memset(reinterpret_cast(&ikey), 0, sizeof(ikey)); - ASSERT_TRUE(rocksdb::ParseInternalKey(iter->key(), &ikey)); + assert(rocksdb::ParseInternalKey(iter->key(), &ikey)); switch (ikey.type) { case rocksdb::kTypeValue: state.append("Put(");