mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
Merge with MySQL 5.1, with following additions:
- Moved some code from innodb_plugin to xtradb, to ensure that all tests runs - Did changes in pbxt and maria storage engines becasue of changes in thd->query - Reverted wrong code in sql_table.cc for how ROW_FORMAT is used. This is a re-commit of Monty's merge to eliminate an extra commit from MySQL-5.1.42 that was accidentally included in the merge. This is a merge of the MySQL 5.1.41 clone-off (clone-5.1.41-build). In case there are any extra changes done before final MySQL 5.1.41 release, these will need to be merged later before MariaDB 5.1.41 release.
This commit is contained in:
commit
a962160eec
549 changed files with 20492 additions and 5340 deletions
|
|
@ -522,8 +522,8 @@ int ha_archive::open(const char *name, int mode, uint open_options)
|
|||
{
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
else
|
||||
DBUG_RETURN(rc);
|
||||
|
||||
DBUG_RETURN(rc);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -993,6 +993,7 @@ int ha_archive::rnd_init(bool scan)
|
|||
/* We rewind the file so that we can read from the beginning if scan */
|
||||
if (scan)
|
||||
{
|
||||
scan_rows= stats.records;
|
||||
DBUG_PRINT("info", ("archive will retrieve %llu rows",
|
||||
(unsigned long long) scan_rows));
|
||||
|
||||
|
|
@ -1461,7 +1462,6 @@ int ha_archive::info(uint flag)
|
|||
stats.records= share->rows_recorded;
|
||||
pthread_mutex_unlock(&share->mutex);
|
||||
|
||||
scan_rows= stats.records;
|
||||
stats.deleted= 0;
|
||||
|
||||
DBUG_PRINT("ha_archive", ("Stats rows is %d\n", (int)stats.records));
|
||||
|
|
@ -1472,11 +1472,12 @@ int ha_archive::info(uint flag)
|
|||
|
||||
VOID(my_stat(share->data_file_name, &file_stat, MYF(MY_WME)));
|
||||
|
||||
stats.mean_rec_length= table->s->reclength + buffer.alloced_length();
|
||||
stats.data_file_length= file_stat.st_size;
|
||||
stats.create_time= (ulong) file_stat.st_ctime;
|
||||
stats.update_time= (ulong) file_stat.st_mtime;
|
||||
stats.max_data_file_length= share->rows_recorded * stats.mean_rec_length;
|
||||
stats.mean_rec_length= stats.records ?
|
||||
stats.data_file_length / stats.records : table->s->reclength;
|
||||
stats.max_data_file_length= MAX_FILE_SIZE;
|
||||
}
|
||||
stats.delete_length= 0;
|
||||
stats.index_file_length=0;
|
||||
|
|
@ -1574,10 +1575,8 @@ int ha_archive::check(THD* thd, HA_CHECK_OPT* check_opt)
|
|||
share->crashed= FALSE;
|
||||
DBUG_RETURN(HA_ADMIN_CORRUPT);
|
||||
}
|
||||
else
|
||||
{
|
||||
DBUG_RETURN(HA_ADMIN_OK);
|
||||
}
|
||||
|
||||
DBUG_RETURN(HA_ADMIN_OK);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue