summaryrefslogtreecommitdiff
path: root/innobase/read/read0read.c
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2002-10-29 23:16:46 +0200
committerheikki@hundin.mysql.fi <>2002-10-29 23:16:46 +0200
commit9153d88c6bfbb7b1d9fd5fd1633aade67b48e774 (patch)
treee57bf300e559932ce45e0f749d7349577e7e0479 /innobase/read/read0read.c
parent245218284495701846f49d986bc91997b97563d6 (diff)
downloadmariadb-git-9153d88c6bfbb7b1d9fd5fd1633aade67b48e774.tar.gz
Many files:
Merge InnoDB-4.0.5: new isolation levels READ COMMITTED and READ UNCOMMITTED now supported, selective deadlock resolution mysqld.cc: Change MySQL default isolation level to REPEATABLE READ; note that InnoDB has always had that default, and BDB and MyISAM always run at SERIALIZABLE level anyway
Diffstat (limited to 'innobase/read/read0read.c')
-rw-r--r--innobase/read/read0read.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/innobase/read/read0read.c b/innobase/read/read0read.c
index a5048c0c909..5c1d2d5418e 100644
--- a/innobase/read/read0read.c
+++ b/innobase/read/read0read.c
@@ -201,6 +201,28 @@ read_view_close(
}
/*************************************************************************
+Closes a consistent read view for MySQL. This function is called at an SQL
+statement end if the trx isolation level is <= TRX_ISO_READ_COMMITTED. */
+
+void
+read_view_close_for_mysql(
+/*======================*/
+ trx_t* trx) /* in: trx which has a read view */
+{
+ ut_a(trx->read_view);
+
+ mutex_enter(&kernel_mutex);
+
+ read_view_close(trx->read_view);
+
+ mem_heap_empty(trx->read_view_heap);
+
+ trx->read_view = NULL;
+
+ mutex_exit(&kernel_mutex);
+}
+
+/*************************************************************************
Prints a read view to stderr. */
void