MXS-1262: Move journal_max_age to MaxScale core

The parameter is now defined in the monitor. Further refactoring is needed
to make the interface of the journal system simpler.
This commit is contained in:
Markus Mäkelä
2017-08-09 14:54:52 +03:00
parent 837d57f4f4
commit b448b129d0
8 changed files with 78 additions and 37 deletions

View File

@ -202,6 +202,7 @@ struct mxs_monitor
/**< Are there any pending changes to a server?
* If yes, the next monitor loop starts early. */
bool active; /**< True if monitor is active */
time_t journal_max_age; /**< Maximum age of journal file */
struct mxs_monitor *next; /**< Next monitor in the linked list */
};
@ -246,6 +247,7 @@ extern const char CN_BACKEND_READ_TIMEOUT[];
extern const char CN_BACKEND_WRITE_TIMEOUT[];
extern const char CN_BACKEND_CONNECT_TIMEOUT[];
extern const char CN_MONITOR_INTERVAL[];
extern const char CN_JOURNAL_MAX_AGE[];
extern const char CN_SCRIPT[];
extern const char CN_EVENTS[];