summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/commonheaders.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-10 16:26:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-10 16:26:57 +0000
commitcd72e104e05f62a62f034cebf10c2b171bece2c8 (patch)
tree66c7269e96d5f3f4d7dc4ff6c0307891deaa4a79 /plugins/Dbx_mdb/src/commonheaders.h
parent3739d103d4369a36749f5ef4884bf470f8ccf26e (diff)
fix for correct transaction processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@12375 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/commonheaders.h')
-rw-r--r--plugins/Dbx_mdb/src/commonheaders.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Dbx_mdb/src/commonheaders.h b/plugins/Dbx_mdb/src/commonheaders.h
index 2d1a6ae580..e68a261e56 100644
--- a/plugins/Dbx_mdb/src/commonheaders.h
+++ b/plugins/Dbx_mdb/src/commonheaders.h
@@ -100,6 +100,12 @@ public:
__forceinline operator MDB_cursor*() const { return m_cursor; }
};
+#define MDB_CHECK(A,B) \
+ switch(A) { \
+ case MDB_SUCCESS: break; \
+ case MDB_MAP_FULL: continue; \
+ default: return (B); }
+
#include "dbintf.h"
#include "resource.h"
#include "version.h"