diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-19 20:11:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-19 20:11:37 +0300 |
commit | 5d963a887870b75d3733995a26a9b7c55918fcf4 (patch) | |
tree | c686cea939a73bccc199521362500c595d0fc3c7 /plugins/Dbx_mdbx | |
parent | 0f46a02f86e2049dd99ac4c7f6478c08f279a589 (diff) |
very bad idea to return -1 as blob size on error
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbevents.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index 2c9a1d71f0..09baddc8a4 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -282,7 +282,7 @@ LONG CDbxMDBX::GetBlobSize(MEVENT hDbEvent) {
MDBX_val key = { &hDbEvent, sizeof(MEVENT) }, data;
if (mdbx_get(StartTran(), m_dbEvents, &key, &data) != MDBX_SUCCESS)
- return -1;
+ return 0;
return ((const DBEvent*)data.iov_base)->cbBlob;
}
|