Commit 164a9e35 authored by hf@deer.(none)'s avatar hf@deer.(none)

WL#1163 (To make spatial code optional)

a couple of lines added to make code easier to read
parent ec457a96
...@@ -48,6 +48,8 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key, ...@@ -48,6 +48,8 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key,
*/ */
#ifdef HAVE_SPATIAL #ifdef HAVE_SPATIAL
return sp_make_key(info,keynr,key,record,filepos); return sp_make_key(info,keynr,key,record,filepos);
#else
DBUG_ASSERT(0); /* mi_open should check that this never happens*/
#endif #endif
} }
......
...@@ -734,6 +734,8 @@ static void setup_key_functions(register MI_KEYDEF *keyinfo) ...@@ -734,6 +734,8 @@ static void setup_key_functions(register MI_KEYDEF *keyinfo)
#ifdef HAVE_RTREE_KEYS #ifdef HAVE_RTREE_KEYS
keyinfo->ck_insert = rtree_insert; keyinfo->ck_insert = rtree_insert;
keyinfo->ck_delete = rtree_delete; keyinfo->ck_delete = rtree_delete;
#else
DBUG_ASSERT(0); /* mi_open should check it never happens */
#endif #endif
} }
else else
......
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