summaryrefslogtreecommitdiff
path: root/heap/hp_create.c
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-09-08 02:07:53 +0400
committersergefp@mysql.com <>2004-09-08 02:07:53 +0400
commit2c9d2cf671d33f598dcec7eb5604f98638c96490 (patch)
tree5fb9bac74cdad46fce2efb3c783f9a02367489bd /heap/hp_create.c
parent15eb33ab44b6af9f34e65d941739fadcd0026866 (diff)
downloadmariadb-git-2c9d2cf671d33f598dcec7eb5604f98638c96490.tar.gz
Fix for bug#5138: hash indexes on heap tables support statistics.
KEY::rec_per_key is updated every time 1/HEAP_STATS_UPDATE_THRESHOLD part of table records has been changed.
Diffstat (limited to 'heap/hp_create.c')
-rw-r--r--heap/hp_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/heap/hp_create.c b/heap/hp_create.c
index 02725576c8f..d1783118c0d 100644
--- a/heap/hp_create.c
+++ b/heap/hp_create.c
@@ -128,6 +128,7 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,
max_records);
keyinfo->delete_key= hp_delete_key;
keyinfo->write_key= hp_write_key;
+ keyinfo->hash_buckets= 0;
}
}
share->min_records= min_records;