Last active
August 29, 2015 14:07
-
-
Save yjxiong/cee744796b13feeef3d2 to your computer and use it in GitHub Desktop.
Get lmdb raw data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHECK_EQ(mdb_cursor_get(mdb_cursor_, &mdb_key_, | |
&mdb_value_, MDB_GET_CURRENT), MDB_SUCCESS); | |
datum.ParseFromArray(mdb_value_.mv_data, | |
mdb_value_.mv_size); | |
LOG(INFO)<<"Read "<<item_id<<" "<<(char*)mdb_key_.mv_data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment