diff options
author | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-09-06 19:56:19 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-09-06 19:56:19 +0500 |
commit | 032de81438179ebfc047e6eb6e3c505400f3bb18 (patch) | |
tree | 29086ef6a18c896992f6783f52f46076d7ecf4f6 /myisam | |
parent | ddb9f8668fa10166e4ffb761dc54a25a007c5bfa (diff) | |
download | mariadb-git-032de81438179ebfc047e6eb6e3c505400f3bb18.tar.gz |
bug #12991 (compile error --without-geometry)
myisam/mi_check.c:
proper #ifdef-s added
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_check.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 1e62e5e641d..1374cb05094 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -1153,9 +1153,12 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend) /* We don't need to lock the key tree here as we don't allow concurrent threads when running myisamchk */ - int search_result= (keyinfo->flag & HA_SPATIAL) ? + int search_result= +#ifdef HAVE_RTREE_KEYS + (keyinfo->flag & HA_SPATIAL) ? rtree_find_first(info, key, info->lastkey, key_length, MBR_EQUAL | MBR_DATA) : +#endif _mi_search(info,keyinfo,info->lastkey,key_length, SEARCH_SAME, info->s->state.key_root[key]); if (search_result) |