mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
run on mariadb 10 with its safe malloc
This commit is contained in:
parent
c88eed4b3e
commit
955cce52f6
1 changed files with 1 additions and 1 deletions
|
@ -1731,7 +1731,7 @@ int ha_tokudb::initialize_share(const char* name, int mode) {
|
|||
|
||||
// initialize cardinality info from the status dictionary
|
||||
share->n_rec_per_key = tokudb::compute_total_key_parts(table_share);
|
||||
share->rec_per_key = (uint64_t *) tokudb_my_realloc(share->rec_per_key, share->n_rec_per_key * sizeof (uint64_t), MYF(MY_FAE));
|
||||
share->rec_per_key = (uint64_t *) tokudb_my_realloc(share->rec_per_key, share->n_rec_per_key * sizeof (uint64_t), MYF(MY_FAE + MY_ALLOW_ZERO_PTR));
|
||||
error = tokudb::get_card_from_status(share->status_block, txn, share->n_rec_per_key, share->rec_per_key);
|
||||
if (error) {
|
||||
for (uint i = 0; i < share->n_rec_per_key; i++)
|
||||
|
|
Loading…
Add table
Reference in a new issue