Loading sql/ha_innobase.cc +7 −2 Original line number Diff line number Diff line Loading @@ -398,6 +398,9 @@ ha_innobase::update_thd( return(0); } #ifdef notdefined /* The code here appears for documentational purposes only. Not used or tested yet. Will be used in 4.1. */ /********************************************************************* Call this when you have opened a new table handle in HANDLER, before you call index_read_idx() etc. Actually, we can let the cursor stay open even Loading @@ -405,14 +408,15 @@ over a transaction commit! Then you should call this before every operation, fecth next etc. This function inits the necessary things even after a transaction commit. */ /* TODO: THIS CODE HAS NOT BEEN TESTED!!! */ void ha_innobase::init_table_handle_for_HANDLER(void) /*============================================*/ { row_prebuilt_t* prebuilt; ut_a(0); /* the code has not been used or tested yet; to prevent inadvertent usage we assert an error here */ /* If current thd does not yet have a trx struct, create one. If the current handle does not yet have a prebuilt struct, create one. Update the trx pointers in the prebuilt struct. Normally Loading Loading @@ -452,6 +456,7 @@ ha_innobase::init_table_handle_for_HANDLER(void) prebuilt->read_just_key = FALSE; } #endif /************************************************************************* Opens an InnoDB database. */ Loading sql/ha_innobase.h +2 −1 Original line number Diff line number Diff line Loading @@ -157,7 +157,8 @@ class ha_innobase: public handler void free_foreign_key_create_info(char* str); THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); void init_table_handle_for_HANDLER(); /* TODO: NOT TESTED!!! */ /* void init_table_handle_for_HANDLER(); Not tested or used yet, code included for documentational purposes only */ longlong get_auto_increment(); }; Loading Loading
sql/ha_innobase.cc +7 −2 Original line number Diff line number Diff line Loading @@ -398,6 +398,9 @@ ha_innobase::update_thd( return(0); } #ifdef notdefined /* The code here appears for documentational purposes only. Not used or tested yet. Will be used in 4.1. */ /********************************************************************* Call this when you have opened a new table handle in HANDLER, before you call index_read_idx() etc. Actually, we can let the cursor stay open even Loading @@ -405,14 +408,15 @@ over a transaction commit! Then you should call this before every operation, fecth next etc. This function inits the necessary things even after a transaction commit. */ /* TODO: THIS CODE HAS NOT BEEN TESTED!!! */ void ha_innobase::init_table_handle_for_HANDLER(void) /*============================================*/ { row_prebuilt_t* prebuilt; ut_a(0); /* the code has not been used or tested yet; to prevent inadvertent usage we assert an error here */ /* If current thd does not yet have a trx struct, create one. If the current handle does not yet have a prebuilt struct, create one. Update the trx pointers in the prebuilt struct. Normally Loading Loading @@ -452,6 +456,7 @@ ha_innobase::init_table_handle_for_HANDLER(void) prebuilt->read_just_key = FALSE; } #endif /************************************************************************* Opens an InnoDB database. */ Loading
sql/ha_innobase.h +2 −1 Original line number Diff line number Diff line Loading @@ -157,7 +157,8 @@ class ha_innobase: public handler void free_foreign_key_create_info(char* str); THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); void init_table_handle_for_HANDLER(); /* TODO: NOT TESTED!!! */ /* void init_table_handle_for_HANDLER(); Not tested or used yet, code included for documentational purposes only */ longlong get_auto_increment(); }; Loading