From 36d0c8d1d781d80e4bee71208d72ea5a1f8e1fec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Jan 2021 22:35:54 +0300 Subject: we import slower, but more securely (flush database time to time) --- include/m_db_int.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_db_int.h b/include/m_db_int.h index 198f21a030..71adc82826 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -155,11 +155,11 @@ interface MIR_APP_EXPORT MIDatabase STDMETHOD_(BOOL, Compact)(void) PURE; STDMETHOD_(BOOL, Backup)(LPCWSTR) PURE; - + STDMETHOD_(BOOL, Flush)(void) PURE; + STDMETHOD_(MIDatabaseChecker*, GetChecker)(void) PURE; STDMETHOD_(DATABASELINK*, GetDriver)(void) PURE; - STDMETHOD_(MEVENT, GetEventById)(LPCSTR szModule, LPCSTR szId) PURE; STDMETHOD_(DB::EventCursor*, EventCursor)(MCONTACT hContact, MEVENT hDbEvent) PURE; @@ -228,6 +228,7 @@ public: STDMETHODIMP_(BOOL) Compact(void) override; STDMETHODIMP_(BOOL) Backup(LPCWSTR) override; + STDMETHODIMP_(BOOL) Flush(void) override; STDMETHODIMP_(MIDatabaseChecker*) GetChecker(void) override; -- cgit v1.2.3