Skip to content

Instantly share code, notes, and snippets.

@yjxiong
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjxiong/cee744796b13feeef3d2 to your computer and use it in GitHub Desktop.
Save yjxiong/cee744796b13feeef3d2 to your computer and use it in GitHub Desktop.
Get lmdb raw data.
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