diff options
author | heikki@hundin.mysql.fi <> | 2005-08-03 17:09:21 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2005-08-03 17:09:21 +0300 |
commit | 74fd4504bb8a334c3171362f41e18ccfeee0e96c (patch) | |
tree | aedea677efe6043e724f01c1c14864393d62c931 /innobase/row | |
parent | 05d4c0c748b231d818647ddd64ea1806372c5ac6 (diff) | |
download | mariadb-git-74fd4504bb8a334c3171362f41e18ccfeee0e96c.tar.gz |
Many files:
Push the patch of Jan Lindstrom: better comments
ha_innodb.cc:
Partial fix for Bug #12263 : we let InnoDB always to perform a rollback on the trx object if MySQL closes a connection; but we do print a warning to the .err log if an InnoDB transaction was active; we may remove that print later, since the situation really is not a bug; MySQL just is not aware that some cursor operation started an InnoDB transaction
Diffstat (limited to 'innobase/row')
-rw-r--r-- | innobase/row/row0sel.c | 12 |
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; |