diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-30 11:20:28 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-30 11:20:28 +0300 |
commit | 0fbb50b597aaf19c68edb9357f58d7a074f036cc (patch) | |
tree | daff2e79f76f2d5985022e679d968ec274ff57ae /myisammrg | |
parent | 9001f3515b2902d6663e9fb46b63bda84d426130 (diff) | |
download | mariadb-git-0fbb50b597aaf19c68edb9357f58d7a074f036cc.tar.gz |
Fix problem with comments/blank lines in MERGE files.
Docs/manual.texi:
Changelog
Diffstat (limited to 'myisammrg')
-rw-r--r-- | myisammrg/myrg_open.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/myisammrg/myrg_open.c b/myisammrg/myrg_open.c index f70d33feb2b..df94fb680cb 100644 --- a/myisammrg/myrg_open.c +++ b/myisammrg/myrg_open.c @@ -65,7 +65,6 @@ int handle_locking) end[-1]='\0'; if (buff[0] && buff[0] != '#') /* Skipp empty lines and comments */ { - last_isam=isam; if (!test_if_hard_path(buff)) { VOID(strmake(name_buff+dir_length,buff, @@ -75,14 +74,14 @@ int handle_locking) if (!(isam=mi_open(buff,mode,test(handle_locking)))) goto err; files++; + last_isam=isam; + if (info.reclength && info.reclength != isam->s->base.reclength) + { + my_errno=HA_ERR_WRONG_IN_RECORD; + goto err; + } + info.reclength=isam->s->base.reclength; } - last_isam=isam; - if (info.reclength && info.reclength != isam->s->base.reclength) - { - my_errno=HA_ERR_WRONG_IN_RECORD; - goto err; - } - info.reclength=isam->s->base.reclength; } if (!(m_info= (MYRG_INFO*) my_malloc(sizeof(MYRG_INFO)+ files*sizeof(MYRG_TABLE), |