summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2011-03-23 15:29:20 +0100
committerunknown <knielsen@knielsen-hq.org>2011-03-23 15:29:20 +0100
commitca5ca4b968297ac4dc5d0850752306b92570b6a1 (patch)
tree56115abfda488804535ac91643347be6f1e1396d /sql/log.h
parenta2d921be3634ceff4ab4c67f57b27a481d4a28df (diff)
downloadmariadb-git-ca5ca4b968297ac4dc5d0850752306b92570b6a1.tar.gz
MWL#116: group commit
Implement binlog_optimize_thread_scheduling option to allow benchmarking the effect of running commit_ordered() for multiple transactions all in one thread.
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 fcc9d5a711b..492a735c0ae 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. */