diff options
author | Seppo Jaakola <seppo.jaakola@codership.com> | 2013-08-21 17:17:30 +0300 |
---|---|---|
committer | Seppo Jaakola <seppo.jaakola@codership.com> | 2013-08-21 17:17:30 +0300 |
commit | fca065f95c3f62b0f6ec8448f7dcda40d73eb433 (patch) | |
tree | 8d477005bfd14f335d91d8c66c0632f64c7599cb /sql/wsrep_hton.cc | |
parent | 2db87f65167c389c191336672e7ae1ddc65c8436 (diff) | |
download | mariadb-git-fca065f95c3f62b0f6ec8448f7dcda40d73eb433.tar.gz |
Merged with lp:~codership/codership-mysql/5.5-23, up to revision 3903
Diffstat (limited to 'sql/wsrep_hton.cc')
-rw-r--r-- | sql/wsrep_hton.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/wsrep_hton.cc b/sql/wsrep_hton.cc index 8b682d579d8..bd934031fc3 100644 --- a/sql/wsrep_hton.cc +++ b/sql/wsrep_hton.cc @@ -75,7 +75,12 @@ void wsrep_register_hton(THD* thd, bool all) if (i->ht()->db_type == DB_TYPE_INNODB) { trans_register_ha(thd, all, wsrep_hton); - thd->ha_data[wsrep_hton->slot].ha_info[all].set_trx_read_write(); + + /* follow innodb read/write settting */ + if (i->is_trx_read_write()) + { + thd->ha_data[wsrep_hton->slot].ha_info[all].set_trx_read_write(); + } break; } } |