|
|
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
r50
Please provide any additional information below.
Index: mysql-patches/mysql-5.0.37-patches
===================================================================
--- mysql-patches/mysql-5.0.37-patches (revision 50)
+++ mysql-patches/mysql-5.0.37-patches (working copy)
@@ -73809,7 +73809,7 @@
+ /* Export the semi-sync status. */
+ if (semi_sync_slave && !semi_sync_status) {
+ /* Semi-sync status is ON now. */
-+ thread_safe_add(rpl_semi_sync_slave_status, 1, &LOCK_stats);
++ thread_safe_add(rpl_semi_sync_slave_status, 1, &LOCK_status);
+ semi_sync_status = true;
+ }
+
@@ -73911,7 +73911,7 @@
+
+ if (semi_sync_status) {
+ /* Semi-sync status is OFF now. */
-+ thread_safe_sub(rpl_semi_sync_slave_status, 1, &LOCK_stats);
++ thread_safe_sub(rpl_semi_sync_slave_status, 1, &LOCK_status);
+ }
+
+ delete mule;
@@ -75439,11 +75439,11 @@
+ char *packet_fixed_buffer) {
+ if (flags & BINLOG_MIRROR_CLIENT) {
+ /* One less mirror binlog client. */
-+ thread_safe_sub(rpl_mirror_binlog_clients, 1, &LOCK_stats);
++ thread_safe_sub(rpl_mirror_binlog_clients, 1, &LOCK_status);
+ }
+ if (flags & BINLOG_SEMI_SYNC) {
+ /* One less semi-sync client. */
-+ thread_safe_sub(rpl_semi_sync_clients, 1, &LOCK_stats);
++ thread_safe_sub(rpl_semi_sync_clients, 1, &LOCK_status);
+ }
+ if (packet_fixed_buffer != NULL) {
+ /* Release or free memory allocated for the packet */
@@ -75497,11 +75497,11 @@
+
+ if (flags & BINLOG_MIRROR_CLIENT) {
+ /* One more mirror binlog clients. */
-+ thread_safe_increment(rpl_mirror_binlog_clients, &LOCK_stats);
++ thread_safe_increment(rpl_mirror_binlog_clients, &LOCK_status);
+ }
+ if (flags & BINLOG_SEMI_SYNC) {
+ /* One more semi-sync clients. */
-+ thread_safe_increment(rpl_semi_sync_clients, &LOCK_stats);
++ thread_safe_increment(rpl_semi_sync_clients, &LOCK_status);
+ }
#ifndef DBUG_OFF
|