summaryrefslogtreecommitdiff
path: root/innobase/row/row0sel.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/row/row0sel.c')
-rw-r--r--innobase/row/row0sel.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c
index 0b563eb147e..15881cb8c5d 100644
--- a/innobase/row/row0sel.c
+++ b/innobase/row/row0sel.c
@@ -3100,6 +3100,13 @@ row_search_for_mysql(
"http://dev.mysql.com/doc/mysql/en/InnoDB_troubleshooting_datadict.html\n"
"InnoDB: how you can resolve the problem.\n",
prebuilt->table->name);
+
+ /* Restore a global read view back to a transaction. This
+ forces MySQL always to set a cursor view before fetch from
+ a cursor. */
+
+ trx->read_view = trx->global_read_view;
+
return(DB_ERROR);
}
@@ -4091,8 +4098,9 @@ normal_return:
}
func_exit:
- /* Restore a global read view back to transaction. This forces
- MySQL always to set cursor view before fetch if it is used. */
+ /* Restore a global read view back to a transaction. This
+ forces MySQL always to set a cursor view before fetch from
+ a cursor. */
trx->read_view = trx->global_read_view;