summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-07-20 20:58:58 +0300
committerunknown <heikki@donna.mysql.fi>2001-07-20 20:58:58 +0300
commite77d99c6af7d194afc9c295f5a8ad08cef162221 (patch)
tree634cddc99b05bb8539a422f8f6670f9bcf9706b6 /innobase
parent48f40550f462e1a258682a5cc85f22ac8955f095 (diff)
downloadmariadb-git-e77d99c6af7d194afc9c295f5a8ad08cef162221.tar.gz
row0sel.c Remove a possible cause of the Peter Zaitsev hang
innobase/row/row0sel.c: Remove a possible cause of the Peter Zaitsev hang
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0sel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c
index eef60c07af3..5a77fc5daaa 100644
--- a/innobase/row/row0sel.c
+++ b/innobase/row/row0sel.c
@@ -2537,10 +2537,7 @@ row_search_for_mysql(
unique_search_from_clust_index = TRUE;
- /* Disable this optimization (hence FALSE below) until
- the hang of Peter Zaitsev has been tracked down */
-
- if (FALSE && trx->mysql_n_tables_locked == 0
+ if (trx->mysql_n_tables_locked == 0
&& !prebuilt->sql_stat_start) {
/* This is a SELECT query done as a consistent read,
@@ -2576,6 +2573,12 @@ row_search_for_mysql(
return(DB_RECORD_NOT_FOUND);
}
+
+ /* Commit the mini-transaction since it can
+ hold latches */
+
+ mtr_commit(&mtr);
+ mtr_start(&mtr);
}
}