diff options
author | bell@sanja.is.com.ua <> | 2002-11-03 10:15:14 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-11-03 10:15:14 +0200 |
commit | 43073630790990ffd6d1b6e970f8e6d3698663ea (patch) | |
tree | feab8ca130dab7caf8716a9f1f3dac2c75847e17 /sql/handler.cc | |
parent | e65fd5d5743a44fdc78739e58ae605788a5a263f (diff) | |
download | mariadb-git-43073630790990ffd6d1b6e970f8e6d3698663ea.tar.gz |
new innodb query cache behaviour (recommit because of problem with 4.1 repository pushing)
fixed bug in quqry cache dbd transaction processing
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index f60c3449075..10313201bf2 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -294,7 +294,8 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans) error=1; } else - transaction_commited= 1; + if (!(thd->options & OPTION_BEGIN)) + transaction_commited= 1; trans->bdb_tid=0; } #endif @@ -838,6 +839,16 @@ int handler::delete_all_rows() return (my_errno=HA_ERR_WRONG_COMMAND); } +bool handler::caching_allowed(THD* thd, char* table_key, + uint key_length, uint8 cache_type) +{ + if (cache_type == HA_CACHE_TBL_ASKTRANSACT) + return innobase_query_caching_of_table_permitted(thd, table_key, + key_length); + else + return 1; +} + /**************************************************************************** ** Some general functions that isn't in the handler class ****************************************************************************/ |