summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-04-22 13:50:53 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-04-22 13:50:53 +0300
commite52a36d37be2fa8a2da8a987cb38cb0bb65233f4 (patch)
tree74c5190f9aca07e75f5951f64d48e882f2ce7aea /sql/wsrep_mysqld.cc
parent8760ba652188f1f409f3a57b58fc0ce6e25ea6ea (diff)
parentad4b70562bb94dd063eebde5189c6e730d3120a2 (diff)
downloadmariadb-git-e52a36d37be2fa8a2da8a987cb38cb0bb65233f4.tar.gz
Merge 10.1 into 10.2
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc11
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,