diff options
author | Seppo Jaakola <seppo.jaakola@codership.com> | 2012-10-23 22:38:11 +0300 |
---|---|---|
committer | Seppo Jaakola <seppo.jaakola@codership.com> | 2012-10-23 22:38:11 +0300 |
commit | ef6f9a8250804efb047ad6f28e476c59d7223e85 (patch) | |
tree | 4dca03b7badc2e826110921392fb351fd07e80a3 /sql/handler.cc | |
parent | 20df56c1002e809daa68fa7431a9dd7e3d899642 (diff) | |
download | mariadb-git-ef6f9a8250804efb047ad6f28e476c59d7223e85.tar.gz |
References lp:1066784
merged with patch: bzr diff lp:codership-mysql/5.5 -r3795..3809
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index e95c903fd47..bce48feab89 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -5268,6 +5268,27 @@ int ha_wsrep_abort_transaction(THD *bf_thd, THD *victim_thd, my_bool signal) DBUG_RETURN(0); } + +void ha_wsrep_fake_trx_id(THD *thd) +{ + DBUG_ENTER("ha_wsrep_fake_trx_id"); + if (!WSREP(thd)) + { + DBUG_VOID_RETURN; + } + + handlerton *hton= installed_htons[DB_TYPE_INNODB]; + if (hton && hton->wsrep_fake_trx_id) + { + hton->wsrep_fake_trx_id(hton, thd); + } + else + { + WSREP_WARN("cannot get get fake InnoDB transaction ID"); + } + + DBUG_VOID_RETURN; +} #endif /* WITH_WSREP */ #ifdef TRANS_LOG_MGM_EXAMPLE_CODE /* |