mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Code cleanups (done during review of new code)
Rename innodb_table_locks_old_behavior -> innodb_table_locks Set innodb_table_locks to off by default to get same behaviour as in MySQL 4.0.20 (This means that Innodb ignore table locks by default, which makes it easier to combine MyISAM and InnoDB to simulate a transaction) libmysql/libmysql.c: Use ulong instead of unsigned long Reuse _dig_vec() myisam/myisampack.c: Simplify code mysql-test/r/innodb-lock.result: new test case mysql-test/t/innodb-lock.test: new test case sql/ha_innodb.cc: Rename innodb_table_locks_old_behavior -> innodb_table_locks sql/mysqld.cc: Rename innodb_table_locks_old_behavior -> innodb_table_locks Set this off by default to get same behaviour as in MySQL 4.0.20 sql/set_var.cc: Rename innodb_table_locks_old_behavior -> innodb_table_locks sql/sql_class.h: Rename innodb_table_locks_old_behavior -> innodb_table_locks
This commit is contained in:
parent
2428fb5c2b
commit
ed8ec2cf16
8 changed files with 91 additions and 25 deletions
|
|
@ -418,14 +418,12 @@ static bool open_isam_files(PACK_MRG_INFO *mrg,char **names,uint count)
|
|||
mrg->src_file_has_indexes_disabled= 0;
|
||||
for (i=0; i < count ; i++)
|
||||
{
|
||||
if ((mrg->file[i]=open_isam_file(names[i],O_RDONLY)))
|
||||
{
|
||||
mrg->src_file_has_indexes_disabled |=
|
||||
(mrg->file[i]->s->state.key_map !=
|
||||
(1ULL << mrg->file[i]->s->base.keys) - 1);
|
||||
}
|
||||
else
|
||||
if (!(mrg->file[i]=open_isam_file(names[i],O_RDONLY)))
|
||||
goto error;
|
||||
|
||||
mrg->src_file_has_indexes_disabled|= ((mrg->file[i]->s->state.key_map !=
|
||||
(((ulonglong) 1) <<
|
||||
mrg->file[i]->s->base. keys) - 1));
|
||||
}
|
||||
/* Check that files are identical */
|
||||
for (j=0 ; j < count-1 ; j++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue