summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2021-12-27 10:22:28 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2022-01-11 09:43:59 +0200
commitd0ca2415242502181ed18c49d83675f17957ce3a (patch)
tree0c5919d1c8a89b26d71bdb22030029162c71664e
parent89c870b2b4b0003c592887253d165b10569749a3 (diff)
downloadmariadb-git-d0ca2415242502181ed18c49d83675f17957ce3a.tar.gz
MDEV-25472 : Server crashes when wsrep_cluster_address set to unkown address and wsrep_slave_threads to 0
Return failure if we are not connected when slave threads are set
-rw-r--r--sql/wsrep_thd.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc
index ae797c4c712..eecda830023 100644
--- a/sql/wsrep_thd.cc
+++ b/sql/wsrep_thd.cc
@@ -587,9 +587,8 @@ bool wsrep_create_appliers(long threads, bool thread_count_lock)
{
WSREP_ERROR("Trying to launch slave threads before creating "
"connection at '%s'", wsrep_cluster_address);
- assert(0);
}
- return false;
+ return true;
}
long wsrep_threads= 0;