Commit 49f65828 authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

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
parent 7cbe8b36
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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
@@ -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
@@ -452,6 +456,7 @@ ha_innobase::init_table_handle_for_HANDLER(void)

        prebuilt->read_just_key = FALSE;
}
#endif

/*************************************************************************
Opens an InnoDB database. */
+2 −1
Original line number Diff line number Diff line
@@ -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();
};