summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-12-03 14:37:42 +0300
committerKonstantin Osipov <kostja@sun.com>2009-12-03 14:37:42 +0300
commitc659143c1eab033ca7edb37beb0774db89de0fd9 (patch)
tree175c9a131e8db03f979cae325a0c524fa714d860 /sql/rpl_rli.h
parenteef538ab962c444d9f4728e046fcf34638104c6d (diff)
parent94f25504a342152c50b0003ab698411ab83198d4 (diff)
downloadmariadb-git-c659143c1eab033ca7edb37beb0774db89de0fd9.tar.gz
Merge next-mr -> next-4284
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index 332bc4e53d0..949fa932127 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -221,8 +221,14 @@ public:
int events_till_abort;
#endif
- /* if not set, the value of other members of the structure are undefined */
- bool inited;
+ /*
+ inited changes its value within LOCK_active_mi-guarded critical
+ sections at times of start_slave_threads() (0->1) and end_slave() (1->0).
+ Readers may not acquire the mutex while they realize potential concurrency
+ issue.
+ If not set, the value of other members of the structure are undefined.
+ */
+ volatile bool inited;
volatile bool abort_slave;
volatile uint slave_running;