summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_create.c
diff options
context:
space:
mode:
authorpappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2005-08-05 18:01:34 -0400
committerpappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2005-08-05 18:01:34 -0400
commit69acde961f9c9d65ad451b272b3ad4694bc34dfe (patch)
treef2bca76ddf241e417c5d8e8f0ab325105e97cbae /storage/myisam/mi_create.c
parente1b44e91fb3472b14dfe8150a9ebacd4217220e4 (diff)
parent56b91a8c15ab03aeb7b1740212b1f11577605bbb (diff)
downloadmariadb-git-69acde961f9c9d65ad451b272b3ad4694bc34dfe.tar.gz
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.0
into c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/mysql-5.1
Diffstat (limited to 'storage/myisam/mi_create.c')
-rw-r--r--storage/myisam/mi_create.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/myisam/mi_create.c b/storage/myisam/mi_create.c
index 220bc47daf3..6d4106afda5 100644
--- a/storage/myisam/mi_create.c
+++ b/storage/myisam/mi_create.c
@@ -251,9 +251,11 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
/*
called by myisamchk - i.e. table structure was taken from
MYI file and SPATIAL key *does have* additional sp_segs keysegs.
- We'd better delete them now
+ keydef->seg here points right at the GEOMETRY segment,
+ so we only need to decrease keydef->keysegs.
+ (see recreate_table() in mi_check.c)
*/
- keydef->keysegs-=(sp_segs-1);
+ keydef->keysegs-=sp_segs-1;
}
for (j=0, keyseg=keydef->seg ; (int) j < keydef->keysegs ;