Skip to content

Commit d06ebd9

Browse files
committed
Remove references to removed dict_sys->size
1 parent 2565c02 commit d06ebd9

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

storage/innobase/include/dict0mem.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,7 @@ struct dict_v_col_t{
670670
ulint v_pos;
671671

672672
/** Virtual index list, and column position in the index,
673-
the allocated memory is not from table->heap, nor it is
674-
tracked by dict_sys->size */
673+
the allocated memory is not from table->heap */
675674
dict_v_idx_list* v_indexes;
676675

677676
};
@@ -1418,15 +1417,7 @@ struct dict_table_t {
14181417
/** Hash chain node. */
14191418
hash_node_t name_hash;
14201419

1421-
/** Memory heap. If you allocate from this heap after the table has
1422-
been created then be sure to account the allocation into
1423-
dict_sys->size. When closing the table we do something like
1424-
dict_sys->size -= mem_heap_get_size(table->heap) and if that is going
1425-
to become negative then we would assert. Something like this should do:
1426-
old_size = mem_heap_get_size()
1427-
mem_heap_alloc()
1428-
new_size = mem_heap_get_size()
1429-
dict_sys->size += new_size - old_size. */
1420+
/** Memory heap */
14301421
mem_heap_t* heap;
14311422

14321423
/** NULL or the directory path specified by DATA DIRECTORY. */

0 commit comments

Comments
 (0)