Skip to content

Commit caad32c

Browse files
committed
Revert "MDEV-23753: SIGSEGV in Column_stat::store_stat_fields"
This reverts the commit 3b94309 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.
1 parent a638f15 commit caad32c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sql/sql_statistics.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,10 +2124,6 @@ int alloc_statistics_for_table(THD* thd, TABLE *table)
21242124
ulonglong *idx_avg_frequency= (ulonglong*) alloc_root(&table->mem_root,
21252125
sizeof(ulonglong) * key_parts);
21262126

2127-
if (table->file->ha_rnd_init(TRUE))
2128-
DBUG_RETURN(1);
2129-
table->file->ha_rnd_end();
2130-
21312127
uint columns= 0;
21322128
for (field_ptr= table->field; *field_ptr; field_ptr++)
21332129
{

0 commit comments

Comments
 (0)