mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 18:33:58 +00:00
Fixing JNI release build for gcc (#975)
This commit is contained in:
parent
7260662b39
commit
13f7a01f61
|
@ -60,7 +60,9 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents(
|
||||||
rocksdb::ParsedInternalKey ikey;
|
rocksdb::ParsedInternalKey ikey;
|
||||||
memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey));
|
memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey));
|
||||||
bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey);
|
bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey);
|
||||||
assert(parsed);
|
if (!parsed) {
|
||||||
|
assert(parsed);
|
||||||
|
}
|
||||||
switch (ikey.type) {
|
switch (ikey.type) {
|
||||||
case rocksdb::kTypeValue:
|
case rocksdb::kTypeValue:
|
||||||
state.append("Put(");
|
state.append("Put(");
|
||||||
|
|
Loading…
Reference in a new issue