diff options
author | monty@mashka.mysql.fi <> | 2003-06-26 07:56:55 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-06-26 07:56:55 +0300 |
commit | 5f556f11e0e0ef0daefd41829cd400cc7addb583 (patch) | |
tree | 80a9ea494fdef18a20b754a4ce6bfd8179e5cfe0 /myisam | |
parent | 7655f05dc2377b3df8b9fabb0e622781f65d5b60 (diff) | |
download | mariadb-git-5f556f11e0e0ef0daefd41829cd400cc7addb583.tar.gz |
Fixed memory allocation in Unique to not allocate too much memory
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_info.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/myisam/mi_info.c b/myisam/mi_info.c index 32767e73bb1..f4eace198f9 100644 --- a/myisam/mi_info.c +++ b/myisam/mi_info.c @@ -80,15 +80,17 @@ int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag) (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ? 0L : share->base.pack_reclength); x->sortkey= -1; /* No clustering */ - /* The following should be included even if we are not compiling with - USE_RAID as the client must be able to request it! */ x->rec_per_key = share->state.rec_per_key_part; - x->raid_type= share->base.raid_type; - x->raid_chunks= share->base.raid_chunks; - x->raid_chunksize= share->base.raid_chunksize; x->key_map = share->state.key_map; x->data_file_name = share->data_file_name; x->index_file_name = share->index_file_name; + /* + The following should be included even if we are not compiling with + USE_RAID as the client must be able to request it! + */ + x->raid_type= share->base.raid_type; + x->raid_chunks= share->base.raid_chunks; + x->raid_chunksize= share->base.raid_chunksize; } if ((flag & HA_STATUS_TIME) && !my_fstat(info->dfile,&state,MYF(0))) x->update_time=state.st_mtime; |