diff options
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 762328c1a23..4ec16bff33d 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1713,6 +1713,16 @@ struct wait_for_commit on that function for details. */ bool wakeup_subsequent_commits_running; + /* + This flag can be set when a commit starts, but has not completed yet. + It is used by binlog group commit to allow a waiting transaction T2 to + join the group commit of an earlier transaction T1. When T1 has queued + itself for group commit, it will set the commit_started flag. Then when + T2 becomes ready to commit and needs to wait for T1 to commit first, T2 + can queue itself before waiting, and thereby participate in the same + group commit as T1. + */ + bool commit_started; void register_wait_for_prior_commit(wait_for_commit *waitee); int wait_for_prior_commit(THD *thd) |