diff options
author | unknown <monty@mashka.mysql.fi> | 2003-06-26 07:56:55 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-06-26 07:56:55 +0300 |
commit | 2de2917bce42fdb1ff3c421067cbb2afc4844bec (patch) | |
tree | 80a9ea494fdef18a20b754a4ce6bfd8179e5cfe0 /myisam/mi_info.c | |
parent | fc8d108f995f21eeba6b85344f883c75041bfcb7 (diff) | |
download | mariadb-git-2de2917bce42fdb1ff3c421067cbb2afc4844bec.tar.gz |
Fixed memory allocation in Unique to not allocate too much memory
myisam/mi_info.c:
Updated comments
mysys/tree.c:
Added comment
sql/net_serv.cc:
Added comment
Diffstat (limited to 'myisam/mi_info.c')
-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; |