summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-02-01 12:57:14 +0100
committerSergei Golubchik <serg@mariadb.org>2021-02-22 19:27:12 +0100
commitcaad32ca927fa583b292a9d1d77f091affecfc5a (patch)
treed7a82fc0023fc85d99e87a2a93bfc1fc30eacef5
parenta638f1577a356350c8e7cb6021a0b3d2a087755d (diff)
downloadmariadb-git-caad32ca927fa583b292a9d1d77f091affecfc5a.tar.gz
Revert "MDEV-23753: SIGSEGV in Column_stat::store_stat_fields"
This reverts the commit 3b94309a6c but keeps the test Because the fix is a hack that isn't supposed to do anything, and relies on a side-effect of rnd_init inside ha_partition. A different fix is coming up.
-rw-r--r--sql/sql_statistics.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc
index f2aa8b8063e..b7116f701ae 100644
--- a/sql/sql_statistics.cc
+++ b/sql/sql_statistics.cc
@@ -2124,10 +2124,6 @@ int alloc_statistics_for_table(THD* thd, TABLE *table)
ulonglong *idx_avg_frequency= (ulonglong*) alloc_root(&table->mem_root,
sizeof(ulonglong) * key_parts);
- if (table->file->ha_rnd_init(TRUE))
- DBUG_RETURN(1);
- table->file->ha_rnd_end();
-
uint columns= 0;
for (field_ptr= table->field; *field_ptr; field_ptr++)
{