summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2002-02-03 15:21:15 +0200
committerunknown <heikki@donna.mysql.fi>2002-02-03 15:21:15 +0200
commit3518de828d1c7c384ea3503ae2ce1477bf4a9095 (patch)
tree374c715b92eedde6f48f173e44529ab063c71870
parent9855a07b4a9f555bd2858f961607b93a041e2153 (diff)
downloadmariadb-git-3518de828d1c7c384ea3503ae2ce1477bf4a9095.tar.gz
ha_innobase.cc:
Fix the crashes reported by Peter; SHOW CREATE does not call external_lock before calling ::info, and consequently the trx struct in prebuilt is obsolete; setting trx->op_info caused erratic memory corruption in mysqldump sql/ha_innobase.cc: Fix the crashes reported by Peter; SHOW CREATE does not call external_lock before calling ::info, and consequently the trx struct in prebuilt is obsolete; setting trx->op_info caused erratic memory corruption in mysqldump
-rw-r--r--sql/ha_innobase.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc
index a923a259ebd..88c7e10e94c 100644
--- a/sql/ha_innobase.cc
+++ b/sql/ha_innobase.cc
@@ -2952,10 +2952,6 @@ ha_innobase::records_in_range(
void* heap2;
DBUG_ENTER("records_in_range");
-
- if (prebuilt->trx) {
- prebuilt->trx->op_info = "estimating range size";
- }
active_index = keynr;
@@ -2988,10 +2984,6 @@ ha_innobase::records_in_range(
dtuple_free_for_mysql(heap2);
my_free((char*) key_val_buff2, MYF(0));
-
- if (prebuilt->trx) {
- prebuilt->trx->op_info = "";
- }
DBUG_RETURN((ha_rows) n_rows);
}
@@ -3013,11 +3005,6 @@ ha_innobase::estimate_number_of_rows(void)
ulonglong estimate;
ulonglong data_file_length;
- if (prebuilt->trx) {
- prebuilt->trx->op_info =
- "estimating upper bound of table size";
- }
-
DBUG_ENTER("info");
index = dict_table_get_first_index_noninline(prebuilt->table);
@@ -3033,10 +3020,6 @@ ha_innobase::estimate_number_of_rows(void)
estimate = 2 * data_file_length / dict_index_calc_min_rec_len(index);
- if (prebuilt->trx) {
- prebuilt->trx->op_info = "";
- }
-
return((ha_rows) estimate);
}
@@ -3075,10 +3058,6 @@ ha_innobase::info(
ulong i;
DBUG_ENTER("info");
-
- if (prebuilt->trx) {
- prebuilt->trx->op_info = "calculating table stats";
- }
ib_table = prebuilt->table;
@@ -3149,10 +3128,6 @@ ha_innobase::info(
(dict_index_t*)
trx_get_error_info(prebuilt->trx));
}
-
- if (prebuilt->trx) {
- prebuilt->trx->op_info = "";
- }
DBUG_VOID_RETURN;
}