diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-24 13:01:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-24 13:01:42 +0300 |
commit | 6121a75e201ed9c4296838bdfae424972be44f40 (patch) | |
tree | fb3a7f6d18f8a01e163fca8d45731bf79b6d5e56 /plugins/Dbx_mdbx/src/dbcontacts.cpp | |
parent | b97d3291e9cdb5e552209695342f42e7ea86c1d9 (diff) |
if we don't use MDBX_DUPSORT, there's no need to pass the data parameter
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbcontacts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp index b0eb5ca2ee..72a88492d1 100644 --- a/plugins/Dbx_mdbx/src/dbcontacts.cpp +++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp @@ -168,8 +168,8 @@ BOOL CDbxMDBX::MetaSplitHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) {
txn_ptr trnlck(m_env);
DBEventSortingKey insVal = { ccMeta->contactID, EI->eventId, EI->ts };
- MDBX_val key = { &insVal, sizeof(insVal) }, data = { (void*)"", 1 };
- if (mdbx_del(trnlck, m_dbEventsSort, &key, &data) != MDBX_SUCCESS)
+ MDBX_val key = { &insVal, sizeof(insVal) };
+ if (mdbx_del(trnlck, m_dbEventsSort, &key, nullptr) != MDBX_SUCCESS)
return 1;
if (trnlck.commit() != MDBX_SUCCESS)
return 1;
|