diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-22 06:51:03 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-23 14:42:21 +0200 |
commit | d06ebd932d1a0ba4c51b183d5b52a9fa99d8f6ae (patch) | |
tree | 10c8079a037d63e9cb0b1c249c52a30f47d1b311 | |
parent | 2565c02ca577c9b4523a61359b908dbb3d04076d (diff) | |
download | mariadb-git-d06ebd932d1a0ba4c51b183d5b52a9fa99d8f6ae.tar.gz |
Remove references to removed dict_sys->size
-rw-r--r-- | storage/innobase/include/dict0mem.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h index 47602a7a9ae..7fde68b3301 100644 --- a/storage/innobase/include/dict0mem.h +++ b/storage/innobase/include/dict0mem.h @@ -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. */ |