|
|
@ -60,7 +60,8 @@ 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(rocksdb::ParseInternalKey(iter->key(), &ikey)); |
|
|
|
bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey); |
|
|
|
|
|
|
|
assert(parsed); |
|
|
|
switch (ikey.type) { |
|
|
|
switch (ikey.type) { |
|
|
|
case rocksdb::kTypeValue: |
|
|
|
case rocksdb::kTypeValue: |
|
|
|
state.append("Put("); |
|
|
|
state.append("Put("); |
|
|
|