Commit 9a78f2fe authored by unknown's avatar unknown

ha_innobase.h, ha_innobase.cc:

  Put a note that the InnoDB HANDLER code is not used until 4.1, and appears for documentational purposes only


sql/ha_innobase.cc:
  Put a note that the InnoDB HANDLER code is not used until 4.1, and appears for documentational purposes only
sql/ha_innobase.h:
  Put a note that the InnoDB HANDLER code is not used until 4.1, and appears for documentational purposes only
parent d49f3c08
...@@ -398,6 +398,9 @@ ha_innobase::update_thd( ...@@ -398,6 +398,9 @@ ha_innobase::update_thd(
return(0); 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 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 call index_read_idx() etc. Actually, we can let the cursor stay open even
...@@ -405,14 +408,15 @@ over a transaction commit! Then you should call this before every operation, ...@@ -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 fecth next etc. This function inits the necessary things even after a
transaction commit. */ transaction commit. */
/* TODO: THIS CODE HAS NOT BEEN TESTED!!! */
void void
ha_innobase::init_table_handle_for_HANDLER(void) ha_innobase::init_table_handle_for_HANDLER(void)
/*============================================*/ /*============================================*/
{ {
row_prebuilt_t* prebuilt; 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 current thd does not yet have a trx struct, create one.
If the current handle does not yet have a prebuilt struct, create If the current handle does not yet have a prebuilt struct, create
one. Update the trx pointers in the prebuilt struct. Normally one. Update the trx pointers in the prebuilt struct. Normally
...@@ -452,6 +456,7 @@ ha_innobase::init_table_handle_for_HANDLER(void) ...@@ -452,6 +456,7 @@ ha_innobase::init_table_handle_for_HANDLER(void)
prebuilt->read_just_key = FALSE; prebuilt->read_just_key = FALSE;
} }
#endif
/************************************************************************* /*************************************************************************
Opens an InnoDB database. */ Opens an InnoDB database. */
......
...@@ -157,7 +157,8 @@ class ha_innobase: public handler ...@@ -157,7 +157,8 @@ class ha_innobase: public handler
void free_foreign_key_create_info(char* str); void free_foreign_key_create_info(char* str);
THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to,
enum thr_lock_type lock_type); 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(); longlong get_auto_increment();
}; };
......
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