diff options
author | unknown <knielsen@knielsen-hq.org> | 2014-04-11 10:46:11 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2014-04-11 10:46:11 +0200 |
commit | be785cd85ce73d5927365c1c34e3c5b54db83231 (patch) | |
tree | ce79e520a7d13e27e4c656ac87074bea193bcf5f /sql | |
parent | 16d90e5aff742cf20a8ffb9283103b0bf6b5d938 (diff) | |
parent | 65f80d4052e48accab9b152d7368b7aa0ccc3c80 (diff) | |
download | mariadb-git-be785cd85ce73d5927365c1c34e3c5b54db83231.tar.gz |
Merge MDEV-6067 from 5.3 to 5.5.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/handler.cc | 7 | ||||
-rw-r--r-- | sql/handler.h | 18 | ||||
-rw-r--r-- | sql/table.cc | 2 |
3 files changed, 6 insertions, 21 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 2e038be0092..b67bb5e9f66 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -3474,14 +3474,11 @@ int handler::ha_check(THD *thd, HA_CHECK_OPT *check_opt) if it is started. */ +inline void -handler::mark_trx_read_write_part2() +handler::mark_trx_read_write() { Ha_trx_info *ha_info= &ha_thd()->ha_data[ht->slot].ha_info[0]; - - /* Don't call this function again for this statement */ - mark_trx_done= TRUE; - /* When a storage engine method is called, the transaction must have been started, unless it's a DDL call, for which the diff --git a/sql/handler.h b/sql/handler.h index a23e3c2d17e..f557db64221 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1757,7 +1757,6 @@ public: enum {NONE=0, INDEX, RND} inited; bool locked; bool implicit_emptied; /* Can be !=0 only if HEAP */ - bool mark_trx_done; const COND *pushed_cond; /** next_insert_id is the next value which should be inserted into the @@ -1820,7 +1819,7 @@ public: in_range_check_pushed_down(FALSE), ref_length(sizeof(my_off_t)), ft_handler(0), inited(NONE), - locked(FALSE), implicit_emptied(0), mark_trx_done(FALSE), + locked(FALSE), implicit_emptied(0), pushed_cond(0), next_insert_id(0), insert_id_for_cur_row(0), pushed_idx_cond(NULL), pushed_idx_cond_keyno(MAX_KEY), @@ -1898,13 +1897,6 @@ public: } int ha_rnd_init_with_error(bool scan) __attribute__ ((warn_unused_result)); int ha_reset(); - /* Tell handler (not storage engine) this is start of a new statement */ - void ha_start_of_new_statement() - { - ft_handler= 0; - mark_trx_done= FALSE; - } - /* this is necessary in many places, e.g. in HANDLER command */ int ha_index_or_rnd_end() { @@ -2773,12 +2765,8 @@ protected: private: /* Private helpers */ - void mark_trx_read_write_part2(); - inline void mark_trx_read_write() - { - if (!mark_trx_done) - mark_trx_read_write_part2(); - } + inline void mark_trx_read_write(); +private: inline void increment_statistics(ulong SSV::*offset) const; inline void decrement_statistics(ulong SSV::*offset) const; diff --git a/sql/table.cc b/sql/table.cc index cccda4e76fc..f859c624d6b 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -3954,7 +3954,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl) status= STATUS_NO_RECORD; insert_values= 0; fulltext_searched= 0; - file->ha_start_of_new_statement(); + file->ft_handler= 0; reginfo.impossible_range= 0; created= TRUE; |