Add support for multiple runtime error messages

Storing all the runtime errors makes it possible to return all of them
them via the REST API. MaxAdmin will still only show the latest error but
MaxCtrl will now show all errors if more than one error occurs.
This commit is contained in:
Markus Mäkelä
2019-03-21 11:47:21 +02:00
parent 74eeb64fba
commit 203bba0e1d
24 changed files with 57 additions and 165 deletions

View File

@ -14,7 +14,7 @@
#define MXS_MODULE_NAME "masking"
#include "maskingfilter.hh"
#include <maxscale/json_api.h>
#include <maxscale/json_api.hh>
#include <maxscale/modulecmd.hh>
#include <maxscale/paths.h>
#include <maxscale/utils.h>

View File

@ -22,7 +22,7 @@
#include <maxscale/mysql_utils.hh>
#include <maxscale/pcre2.hh>
#include <maxscale/utils.hh>
#include <maxscale/json_api.h>
#include <maxscale/json_api.hh>
using std::auto_ptr;
using std::string;

View File

@ -45,7 +45,7 @@
#include <maxscale/service.hh>
#include <maxscale/utils.h>
#include <maxscale/modulecmd.hh>
#include <maxscale/json_api.h>
#include <maxscale/json_api.hh>
using std::string;
@ -100,7 +100,6 @@ void print_string_replace_newlines(const char* sql_string, size_t sql_str_len,
const char* rep_newline, std::stringstream* output);
bool check_replace_file(const string& filename, FILE** ppFile);
}
QlaInstance::QlaInstance(const string& name, MXS_CONFIG_PARAMETER* params)

View File

@ -8,7 +8,7 @@
#include <maxscale/ccdefs.hh>
#include <maxscale/utils.h>
#include <maxscale/json_api.h>
#include <maxscale/json_api.hh>
#include <maxscale/jansson.hh>
#include "throttlefilter.hh"