summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-01-03 14:26:04 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2017-01-03 14:27:53 +0100
commit306ce497a7b541d301b56fe39eae53aed1bff259 (patch)
treedde48f41251866a744cf8ed90c9ff68b73e0ae98
parent060d4861b95d02bc8b971b9d62103d019c37799e (diff)
downloadmariadb-git-306ce497a7b541d301b56fe39eae53aed1bff259.tar.gz
Fixed typo in comments
-rw-r--r--storage/heap/hp_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/heap/hp_block.c b/storage/heap/hp_block.c
index aa5343a0717..6ecab0d08c4 100644
--- a/storage/heap/hp_block.c
+++ b/storage/heap/hp_block.c
@@ -71,9 +71,9 @@ int hp_get_new_block(HP_SHARE *info, HP_BLOCK *block, size_t *alloc_length)
lower levels.
For example, for level 0, we allocate data for X rows.
- When level 0 is full, we allocate data for HPTRS_IN_NODE + X rows.
+ When level 0 is full, we allocate data for HP_PTRS_IN_NOD + X rows.
Next time we allocate data for X rows.
- When level 1 is full, we allocate data for HPTRS_IN_NODE at level 2 and 1
+ When level 1 is full, we allocate data for HP_PTRS_IN_NOD at level 2 and 1
+ X rows at level 0.
*/
*alloc_length= (sizeof(HP_PTRS) * ((i == block->levels) ? i : i - 1) +