@@ -4628,7 +4628,7 @@ int ha_ndbcluster::start_statement(THD *thd,
46284628 trans_register_ha (thd, FALSE , ndbcluster_hton);
46294629 if (!thd_ndb->trans )
46304630 {
4631- if (thd->in_multi_stmt_transaction ())
4631+ if (thd->in_multi_stmt_transaction_mode ())
46324632 trans_register_ha (thd, TRUE , ndbcluster_hton);
46334633 DBUG_PRINT (" trans" ,(" Starting transaction" ));
46344634 thd_ndb->trans = ndb->startTransaction ();
@@ -4698,7 +4698,7 @@ int ha_ndbcluster::init_handler_for_statement(THD *thd, Thd_ndb *thd_ndb)
46984698 }
46994699#endif
47004700
4701- if (thd->in_multi_stmt_transaction ())
4701+ if (thd->in_multi_stmt_transaction_mode ())
47024702 {
47034703 const void *key= m_table;
47044704 HASH_SEARCH_STATE state;
@@ -4782,7 +4782,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
47824782 if (opt_ndb_cache_check_time && m_rows_changed)
47834783 {
47844784 DBUG_PRINT (" info" , (" Rows has changed and util thread is running" ));
4785- if (thd->in_multi_stmt_transaction ())
4785+ if (thd->in_multi_stmt_transaction_mode ())
47864786 {
47874787 DBUG_PRINT (" info" , (" Add share to list of tables to be invalidated" ));
47884788 /* NOTE push_back allocates memory using transactions mem_root! */
@@ -4801,7 +4801,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
48014801 DBUG_PRINT (" trans" , (" Last external_lock" ));
48024802 PRINT_OPTION_FLAGS (thd);
48034803
4804- if (!thd->in_multi_stmt_transaction ())
4804+ if (!thd->in_multi_stmt_transaction_mode ())
48054805 {
48064806 if (thd_ndb->trans )
48074807 {
@@ -4911,7 +4911,7 @@ static int ndbcluster_commit(handlerton *hton, THD *thd, bool all)
49114911 PRINT_OPTION_FLAGS (thd);
49124912 DBUG_PRINT (" enter" , (" Commit %s" , (all ? " all" : " stmt" )));
49134913 thd_ndb->start_stmt_count = 0 ;
4914- if (trans == NULL || (!all && thd->in_multi_stmt_transaction ()))
4914+ if (trans == NULL || (!all && thd->in_multi_stmt_transaction_mode ()))
49154915 {
49164916 /*
49174917 An odditity in the handler interface is that commit on handlerton
@@ -4981,7 +4981,7 @@ static int ndbcluster_rollback(handlerton *hton, THD *thd, bool all)
49814981 DBUG_ASSERT (ndb);
49824982 thd_ndb->start_stmt_count = 0 ;
49834983 if (trans == NULL || (!all &&
4984- thd->in_multi_stmt_transaction ()))
4984+ thd->in_multi_stmt_transaction_mode ()))
49854985 {
49864986 /* Ignore end-of-statement until real rollback or commit is called */
49874987 DBUG_PRINT (" info" , (" Rollback before start or end-of-statement only" ));
@@ -8271,7 +8271,7 @@ ndbcluster_cache_retrieval_allowed(THD *thd,
82718271 DBUG_ENTER (" ndbcluster_cache_retrieval_allowed" );
82728272 DBUG_PRINT (" enter" , (" dbname: %s, tabname: %s" , dbname, tabname));
82738273
8274- if (thd->in_multi_stmt_transaction ())
8274+ if (thd->in_multi_stmt_transaction_mode ())
82758275 {
82768276 DBUG_PRINT (" exit" , (" No, don't use cache in transaction" ));
82778277 DBUG_RETURN (FALSE );
@@ -8339,7 +8339,7 @@ ha_ndbcluster::register_query_cache_table(THD *thd,
83398339 DBUG_ENTER (" ha_ndbcluster::register_query_cache_table" );
83408340 DBUG_PRINT (" enter" ,(" dbname: %s, tabname: %s" , m_dbname, m_tabname));
83418341
8342- if (thd->in_multi_stmt_transaction ())
8342+ if (thd->in_multi_stmt_transaction_mode ())
83438343 {
83448344 DBUG_PRINT (" exit" , (" Can't register table during transaction" ));
83458345 DBUG_RETURN (FALSE );
0 commit comments