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
This commit is contained in:
unknown 2004-03-15 12:31:21 +04:00
parent 3bf2e442ab
commit 805897cdb8
2 changed files with 4 additions and 0 deletions

View File

@ -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
}

View File

@ -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