mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge with MySQL 5.1.60
This commit is contained in:
@ -382,6 +382,7 @@ int ha_heap::info(uint flag)
|
||||
stats.index_file_length= hp_info.index_length;
|
||||
stats.max_data_file_length= hp_info.max_records * hp_info.reclength;
|
||||
stats.delete_length= hp_info.deleted * hp_info.reclength;
|
||||
stats.create_time= (ulong) hp_info.create_time;
|
||||
if (flag & HA_STATUS_AUTO)
|
||||
stats.auto_increment_value= hp_info.auto_increment;
|
||||
/*
|
||||
|
@ -186,6 +186,7 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,
|
||||
share->auto_key= create_info->auto_key;
|
||||
share->auto_key_type= create_info->auto_key_type;
|
||||
share->auto_increment= create_info->auto_increment;
|
||||
share->create_time= (long) time((time_t*) 0);
|
||||
/* Must be allocated separately for rename to work */
|
||||
if (!(share->name= my_strdup(name,MYF(0))))
|
||||
{
|
||||
|
@ -53,6 +53,7 @@ int heap_info(reg1 HP_INFO *info,reg2 HEAPINFO *x, int flag )
|
||||
x->index_length = info->s->index_length;
|
||||
x->max_records = info->s->max_records;
|
||||
x->errkey = info->errkey;
|
||||
x->create_time = info->s->create_time;
|
||||
if (flag & HA_STATUS_AUTO)
|
||||
x->auto_increment= info->s->auto_increment + 1;
|
||||
DBUG_RETURN(0);
|
||||
|
Reference in New Issue
Block a user