summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbcontacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbcontacts.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp
index 554df02d9a..c9e549da8e 100644
--- a/plugins/Dbx_mdb/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdb/src/dbcontacts.cpp
@@ -258,6 +258,17 @@ void DBCachedContact::Advance(DWORD id, DBEvent &dbe)
}
}
+void DBCachedContact::Snapshot()
+{
+ memcpy(&tmp_dbc, &dbc, sizeof(dbc));
+}
+
+void DBCachedContact::Revert()
+{
+ memcpy(&dbc, &tmp_dbc, sizeof(dbc));
+ memset(&tmp_dbc, 0, sizeof(dbc));
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// initial cycle to fill the contacts' cache
@@ -266,7 +277,7 @@ void CDbxMdb::FillContacts()
LIST<DBCachedContact> arContacts(10);
txn_ptr trnlck(m_pMdbEnv);
- mdb_open(trnlck, "contacts", MDB_INTEGERKEY, &m_dbContacts);
+ //mdb_open(trnlck, "contacts", MDB_INTEGERKEY, &m_dbContacts);
{
cursor_ptr cursor(trnlck, m_dbContacts);