Commit 42c62705 authored by unknown's avatar unknown

WL#1163 (To make spatial code optional)

a couple of lines added to make code easier to read


myisam/mi_key.c:
  'autodocumenting' code added
myisam/mi_open.c:
  'autodocumenting' code added
parent 0bddae2e
......@@ -48,6 +48,8 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key,
*/
#ifdef HAVE_SPATIAL
return sp_make_key(info,keynr,key,record,filepos);
#else
DBUG_ASSERT(0); /* mi_open should check that this never happens*/
#endif
}
......
......@@ -734,6 +734,8 @@ static void setup_key_functions(register MI_KEYDEF *keyinfo)
#ifdef HAVE_RTREE_KEYS
keyinfo->ck_insert = rtree_insert;
keyinfo->ck_delete = rtree_delete;
#else
DBUG_ASSERT(0); /* mi_open should check it never happens */
#endif
}
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