1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

MDEV#5687: Maria doesn't shutdown following upgrade

to 5.5.35-galera

Restored patch for MDEV#4136 and added a test.
This commit is contained in:
Nirbhay Choubey
2014-03-06 18:44:16 -05:00
parent 689aaab0f8
commit 653ef22336
4 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
#
# MDEV#5687: Maria doesn't shutdown following upgrade to 5.5.35-galera
#
SELECT @@GLOBAL.thread_handling;
@@GLOBAL.thread_handling
pool-of-threads
# End of test.

View File

@@ -0,0 +1 @@
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=/usr/lib/galera/libgalera_smm.so --wsrep-cluster-address=gcomm:// --thread_handling=pool-of-threads

View File

@@ -0,0 +1,11 @@
--source include/have_wsrep.inc
--echo
--echo #
--echo # MDEV#5687: Maria doesn't shutdown following upgrade to 5.5.35-galera
--echo #
# Note: This test is to ensure that server shuts down properly.
SELECT @@GLOBAL.thread_handling;
--echo # End of test.

View File

@@ -4912,7 +4912,7 @@ pthread_handler_t start_wsrep_THD(void *arg)
// at server shutdown
}
#if 0
my_thread_end();
if (thread_handling > SCHEDULER_ONE_THREAD_PER_CONNECTION)
{
mysql_mutex_lock(&LOCK_thread_count);
@@ -4920,8 +4920,6 @@ pthread_handler_t start_wsrep_THD(void *arg)
thread_count--;
mysql_mutex_unlock(&LOCK_thread_count);
}
#endif
my_thread_end();
return(NULL);
}