mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user