summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r--sql/ha_innodb.cc32
1 files changed, 3 insertions, 29 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index dffffd9296e..aad0ef2d9fd 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -406,7 +406,7 @@ innobase_mysql_print_thd(
May 14, 2004 probably no race any more,
but better be safe */
}
-
+
/* Use strmake to reduce the timeframe
for a race, compared to fwrite() */
i= (uint) (strmake(buf, s, len) - buf);
@@ -1435,9 +1435,6 @@ ha_innobase::open(
last_query_id = (ulong)-1;
- active_index = 0;
- active_index_before_scan = (uint)-1; /* undefined value */
-
if (!(share=get_share(name))) {
DBUG_RETURN(1);
@@ -1581,15 +1578,6 @@ ha_innobase::open(
DBUG_RETURN(0);
}
-/*********************************************************************
-Does nothing. */
-
-void
-ha_innobase::initialize(void)
-/*=========================*/
-{
-}
-
/**********************************************************************
Closes a handle to an InnoDB table. */
@@ -2654,7 +2642,7 @@ ha_innobase::index_end(void)
{
int error = 0;
DBUG_ENTER("index_end");
-
+ active_index=MAX_KEY;
DBUG_RETURN(error);
}
@@ -3125,8 +3113,6 @@ ha_innobase::rnd_init(
/* Store the active index value so that we can restore the original
value after a scan */
- active_index_before_scan = active_index;
-
if (prebuilt->clust_index_was_generated) {
err = change_active_index(MAX_KEY);
} else {
@@ -3146,19 +3132,7 @@ ha_innobase::rnd_end(void)
/*======================*/
/* out: 0 or error number */
{
- /* Restore the old active_index back; MySQL may assume that a table
- scan does not change active_index. We only restore the value if
- MySQL has called rnd_init before: sometimes MySQL seems to call
- rnd_end WITHOUT calling rnd_init. */
-
- if (active_index_before_scan != (uint)-1) {
-
- change_active_index(active_index_before_scan);
-
- active_index_before_scan = (uint)-1;
- }
-
- return(index_end());
+ return(index_end());
}
/*********************************************************************