diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-06-23 00:35:36 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-06-23 00:35:36 +0300 |
commit | 38ffd49a8bb407674bfb5a2182e65e8c53554812 (patch) | |
tree | d1d225caf1f28bb88e905789937c5ab55ed1327d /sql | |
parent | ee102a7886dc79c7d49cd50e8af653c0e9a4b74a (diff) | |
download | mariadb-git-38ffd49a8bb407674bfb5a2182e65e8c53554812.tar.gz |
slave.cc:
Slave thread is always in an auto-commit state: remove unnecessary tests when we flush master info
sql/slave.cc:
Slave thread is always in an auto-commit state: remove unnecessary tests when we flush master info
Diffstat (limited to 'sql')
-rw-r--r-- | sql/slave.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index b535c87024b..32c478c369d 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1024,7 +1024,7 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) mi->inc_pos(event_len); - if (!(thd->options & (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN))) { + if (!(thd->options & OPTION_BEGIN)) { /* We only flush the master info position to the master.info file if the transaction is not open any more: an incomplete transaction will @@ -1155,7 +1155,7 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) mi->inc_pos(event_len); - if (!(thd->options & (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN))) + if (!(thd->options & OPTION_BEGIN)) flush_master_info(mi); break; @@ -1190,7 +1190,7 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) pthread_cond_broadcast(&mi->cond); pthread_mutex_unlock(&mi->lock); - if (!(thd->options & (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN))) + if (!(thd->options & OPTION_BEGIN)) flush_master_info(mi); #ifndef DBUG_OFF if(abort_slave_event_count) |