summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/dbmodulechain.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-04 18:38:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-04 18:38:40 +0300
commit3c8113e543388f8c29fdc4e5b311d60a8a0a8302 (patch)
tree1377f71b3eb6ea3e3957b4c5205348d0329e8a86 /plugins/Dbx_mdbx/src/dbmodulechain.cpp
parent32cd89f64ef0449eac0ceea2ba9bc1aa36c5759b (diff)
checker for MDBX, first version
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbmodulechain.cpp')
-rw-r--r--plugins/Dbx_mdbx/src/dbmodulechain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbmodulechain.cpp b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
index aa2427348a..e25c85a0b3 100644
--- a/plugins/Dbx_mdbx/src/dbmodulechain.cpp
+++ b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
@@ -27,8 +27,9 @@ int CDbxMDBX::InitModules()
{
txn_ptr_ro trnlck(m_txn_ro);
cursor_ptr_ro cursor(m_curModules);
-
- MDBX_val key, data;
+
+ uint32_t iHash = 0;
+ MDBX_val key = { &iHash, sizeof(iHash) }, data;
while (mdbx_cursor_get(cursor, &key, &data, MDBX_NEXT) == MDBX_SUCCESS) {
uint32_t iMod = *(uint32_t*)key.iov_base;
const char *szMod = (const char*)data.iov_base;