diff options
author | monty@hundin.mysql.fi <> | 2002-10-16 19:05:10 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-10-16 19:05:10 +0300 |
commit | a54df74af0e7367261bcd2f45254e84a3e355946 (patch) | |
tree | 66490ad10c369a5769b1adb2c70bad7536a903b3 /sql/ha_innodb.cc | |
parent | 26b1bbdbd1f630c68025a5b5ac565067ef1747dc (diff) | |
download | mariadb-git-a54df74af0e7367261bcd2f45254e84a3e355946.tar.gz |
Fixes after last merge.
Ignore changed keyblocks when on does DELETE FROM table_name;
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index bb3f254bc03..9e174d7ee59 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -3649,46 +3649,6 @@ int ha_innobase::start_stmt( /*====================*/ /* out: 0 or error code */ - THD* thd) /* in: handle to the user thread */ -{ - row_prebuilt_t* prebuilt = (row_prebuilt_t*) innobase_prebuilt; - trx_t* trx; - - update_thd(thd); - - trx = prebuilt->trx; - - innobase_release_stat_resources(trx); - trx_mark_sql_stat_end(trx); - - auto_inc_counter_for_this_stat = 0; - prebuilt->sql_stat_start = TRUE; - prebuilt->hint_no_need_to_fetch_extra_cols = TRUE; - prebuilt->read_just_key = 0; - - if (prebuilt->select_lock_type == LOCK_NONE) { - /* This handle is for a temporary table created inside - this same LOCK TABLES; since MySQL does NOT call external_lock - in this case, we must use x-row locks inside InnoDB to be - prepared for an update of a row */ - - prebuilt->select_lock_type = LOCK_X; - } - - thd->transaction.all.innodb_active_trans = 1; - - return(0); -} - -/********************************************************************** -When we create a temporary table inside MySQL LOCK TABLES, MySQL will -not call external_lock for the temporary table when it uses it. Instead, -it will call this function. */ - -int -ha_innobase::start_stmt( -/*====================*/ - /* out: 0 or error code */ THD* thd) /* in: handle to the user thread */ { row_prebuilt_t* prebuilt = (row_prebuilt_t*) innobase_prebuilt; |