MXS-1262: Move monitor journals into the core

The journaling functionality is now in the core. Only the MySQL Monitor is
using it.
This commit is contained in:
Markus Mäkelä
2017-08-09 14:10:36 +03:00
parent 4dc41509af
commit 837d57f4f4
6 changed files with 495 additions and 515 deletions

View File

@ -84,36 +84,6 @@ typedef struct
MXS_MONITOR* monitor;
} MYSQL_MONITOR;
/**
* @brief Store a journal of server states
*
* @param monitor Monitor to journal
*/
void store_server_journal(MXS_MONITOR *monitor);
/**
* @brief Load a journal of server states
*
* @param monitor Monitor where journal is loaded
*/
void load_server_journal(MXS_MONITOR *monitor);
/**
* @brief Remove stored journal file
*
* @param monitor Monitor whose journal is removed
*/
void remove_server_journal(MXS_MONITOR *monitor);
/**
* @brief Check whether the journal is too old
*
* @param monitor Monitor to check
* @return True if journal is stale or an error occurred while reading the file.
* False if the file is still valid.
*/
bool journal_is_stale(MXS_MONITOR *monitor, time_t max_age);
MXS_END_DECLS
#endif