diff options
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbintf.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index 679141dc79..93d6a7db09 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -201,7 +201,7 @@ int CDbxMDBX::Map() ///////////////////////////////////////////////////////////////////////////////
// MIDatabaseChecker
-typedef int (CDbxMDBX::*CheckWorker)(int);
+typedef int (CDbxMDBX::*CheckWorker)(void);
int CDbxMDBX::Start(DBCHeckCallback *callback)
{
@@ -209,9 +209,18 @@ int CDbxMDBX::Start(DBCHeckCallback *callback) return ERROR_SUCCESS;
}
-int CDbxMDBX::CheckDb(int, int)
+static CheckWorker Workers[6] =
{
- return ERROR_OUT_OF_PAPER;
+ &CDbxMDBX::CheckEvents1,
+ &CDbxMDBX::CheckEvents2,
+};
+
+int CDbxMDBX::CheckDb(int phase, int)
+{
+ if (phase >= _countof(Workers))
+ return ERROR_OUT_OF_PAPER;
+
+ return (this->*Workers[phase])();
}
void CDbxMDBX::Destroy()
|