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
main
Yueh-Hsuan Chiang 10 years ago
parent dfccc7b4e2
commit 652db51a31
  1. 2
      java/rocksjni/write_batch_test.cc

@ -60,7 +60,7 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents(
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) { for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
rocksdb::ParsedInternalKey ikey; rocksdb::ParsedInternalKey ikey;
memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey)); memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey));
ASSERT_TRUE(rocksdb::ParseInternalKey(iter->key(), &ikey)); assert(rocksdb::ParseInternalKey(iter->key(), &ikey));
switch (ikey.type) { switch (ikey.type) {
case rocksdb::kTypeValue: case rocksdb::kTypeValue:
state.append("Put("); state.append("Put(");

Loading…
Cancel
Save