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
commitd64cf75806281b8ac6b2662035988c9102d99f12 (patch)
tree175c9a131e8db03f979cae325a0c524fa714d860 /sql/rpl_rli.h
parent118d772ca809a77bb02eea894f5ee584e53ac2d9 (diff)
parent485cac39636cb334c96c673f4e590290d67cb227 (diff)
downloadmariadb-git-d64cf75806281b8ac6b2662035988c9102d99f12.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;