Commit 38d562cc authored by hf@deer.(none)'s avatar hf@deer.(none)

Fix for bug #10839 (myisamchk -rq crashes on spatial field)

parent e1d75fb4
......@@ -253,7 +253,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
MYI file and SPATIAL key *does have* additional sp_segs keysegs.
We'd better delete them now
*/
keydef->keysegs-=sp_segs;
keydef->keysegs-=(sp_segs-1);
}
for (j=0, keyseg=keydef->seg ; (int) j < keydef->keysegs ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment