diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-05-07 15:38:25 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-05-07 15:38:25 +0000 |
commit | 0d3b1e2959bdf303c9e60bc9d3940e51e5e3e1d1 (patch) | |
tree | 0c3b11fc01cef6dedaf925692ceba0847e6d1cd8 /plugins/Dbx_mdb/src/dbintf.h | |
parent | 9cd2417aa9352b4f41cd3abf2ff54b6457b053fb (diff) |
dbx_lmdb: optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbintf.h')
-rw-r--r-- | plugins/Dbx_mdb/src/dbintf.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.h b/plugins/Dbx_mdb/src/dbintf.h index cb058d914e..97ec416295 100644 --- a/plugins/Dbx_mdb/src/dbintf.h +++ b/plugins/Dbx_mdb/src/dbintf.h @@ -43,7 +43,7 @@ struct ModuleName #include <pshpack1.h>
-#define DBHEADER_VERSION 2
+#define DBHEADER_VERSION 3
#define DBHEADER_SIGNATURE 0x40DECADEu
struct DBHeader
{
@@ -97,7 +97,6 @@ struct DBSettingKey char szSettingName[100];
};
-
#include <poppack.h>
struct DBCachedContact : public DBCachedContactBase
@@ -118,8 +117,12 @@ struct EventItem DWORD eventId;
};
+class LMDBEventCursor;
+
struct CDbxMdb : public MIDatabase, public MIDatabaseChecker, public MZeroedObject
{
+ friend class LMDBEventCursor;
+
CDbxMdb(const TCHAR *tszFileName, int mode);
~CDbxMdb();
@@ -193,7 +196,7 @@ protected: void FillContacts(void);
bool Remap();
- bool Map();
+ int Map();
protected:
TCHAR* m_tszProfileName;
@@ -241,8 +244,7 @@ protected: MDB_dbi m_dbEvents, m_dbEventsSort;
MDB_cursor *m_curEvents, *m_curEventsSort;
- DWORD m_dwMaxEventId, m_tsLast;
- MEVENT m_evLast;
+ DWORD m_dwMaxEventId;
void FindNextUnread(const txn_ptr &_txn, DBCachedContact *cc, DBEventSortingKey &key2);
@@ -282,4 +284,4 @@ protected: void GenerateNewKey();
void InitDialogs();
-};
+};
\ No newline at end of file |