Skip to content
Permalink
Browse files
Remove references to removed dict_sys->size
  • Loading branch information
dr-m committed Jan 23, 2019
1 parent 2565c02 commit d06ebd9
Showing 1 changed file with 2 additions and 11 deletions.
@@ -670,8 +670,7 @@ struct dict_v_col_t{
ulint v_pos;

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

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

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

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

0 comments on commit d06ebd9

Please sign in to comment.