summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-10-20 11:24:08 +0300
committermonty@mysql.com <>2004-10-20 11:24:08 +0300
commit1f8b3d0f22070d450226ef4f6e0e31c8ef8cd401 (patch)
tree5012e0497271e138067e54c110bf06958ba1f520 /myisam
parentc01c8f99ea16fb2029efade30b8bf18ae314c03a (diff)
downloadmariadb-git-1f8b3d0f22070d450226ef4f6e0e31c8ef8cd401.tar.gz
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)
Diffstat (limited to 'myisam')
-rw-r--r--myisam/myisampack.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/myisam/myisampack.c b/myisam/myisampack.c
index 5efd6b3a7fd..0dde1916f03 100644
--- a/myisam/myisampack.c
+++ b/myisam/myisampack.c
@@ -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++)