summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2011-04-04 15:18:43 +0200
committerunknown <knielsen@knielsen-hq.org>2011-04-04 15:18:43 +0200
commitc359daaa1733208506f4caf2b2db1c8959bf1337 (patch)
tree37dcd09fb216388e59572e227a82e4f666c0b081 /sql/log.h
parentc677fea7d01ef1fab3357496b309a3e3b3c00dfe (diff)
parentca5ca4b968297ac4dc5d0850752306b92570b6a1 (diff)
downloadmariadb-git-c359daaa1733208506f4caf2b2db1c8959bf1337.tar.gz
Merge --binlog_optimize_thread_scheduling into mariadb-5.2-rpl.
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/log.h b/sql/log.h
index 2c369753091..503e94df981 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -370,6 +370,14 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
bool no_auto_events;
/* Queue of transactions queued up to participate in group commit. */
group_commit_entry *group_commit_queue;
+ /*
+ Condition variable to mark that the group commit queue is busy.
+ Used when each thread does it's own commit_ordered() (when
+ binlog_optimize_thread_scheduling=1).
+ Used with the LOCK_commit_ordered mutex.
+ */
+ my_bool group_commit_queue_busy;
+ pthread_cond_t COND_queue_busy;
/* Total number of committed transactions. */
ulonglong num_commits;
/* Number of group commits done. */