diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-22 13:50:53 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-22 13:50:53 +0300 |
commit | e52a36d37be2fa8a2da8a987cb38cb0bb65233f4 (patch) | |
tree | 74c5190f9aca07e75f5951f64d48e882f2ce7aea /sql/wsrep_mysqld.cc | |
parent | 8760ba652188f1f409f3a57b58fc0ce6e25ea6ea (diff) | |
parent | ad4b70562bb94dd063eebde5189c6e730d3120a2 (diff) | |
download | mariadb-git-e52a36d37be2fa8a2da8a987cb38cb0bb65233f4.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r-- | sql/wsrep_mysqld.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc index a2666591660..af50699af59 100644 --- a/sql/wsrep_mysqld.cc +++ b/sql/wsrep_mysqld.cc @@ -259,6 +259,17 @@ static void wsrep_log_cb(wsrep_log_level_t level, const char *msg) { } } +void wsrep_log(void (*fun)(const char *, ...), const char *format, ...) +{ + va_list args; + char msg[1024]; + va_start(args, format); + vsnprintf(msg, sizeof(msg) - 1, format, args); + va_end(args); + (fun)("WSREP: %s", msg); +} + + static void wsrep_log_states (wsrep_log_level_t const level, const wsrep_uuid_t* const group_uuid, wsrep_seqno_t const group_seqno, |