diff --git a/storage/innobase/include/read0read.h b/storage/innobase/include/read0read.h index 129341b..bd92f88 100644 --- a/storage/innobase/include/read0read.h +++ b/storage/innobase/include/read0read.h @@ -56,12 +56,6 @@ public: @param own_mutex true if caller owns trx_sys_t::mutex */ void view_close(ReadView*& view, bool own_mutex); - /** - Release a view that is inactive but not closed. Caller must own - the trx_sys_t::mutex. - @param view View to release */ - void view_release(ReadView*& view); - /** Clones the oldest view and stores it in view. No need to call view_close(). The caller owns the view that is passed in. It will also move the closed views from the m_views list to the diff --git a/storage/innobase/read/read0read.cc b/storage/innobase/read/read0read.cc index c58797a..1a6f74f 100644 --- a/storage/innobase/read/read0read.cc +++ b/storage/innobase/read/read0read.cc @@ -496,36 +496,6 @@ MVCC::get_view() } /** -Release a view that is inactive but not closed. Caller must own -the trx_sys_t::mutex. -@param view View to release */ -void -MVCC::view_release(ReadView*& view) -{ - ut_ad(!srv_read_only_mode); - ut_ad(trx_sys_mutex_own()); - - uintptr_t p = reinterpret_cast(view); - - ut_a(p & 0x1); - - view = reinterpret_cast(p & ~1); - - ut_ad(view->m_closed); - - /** RW transactions should not free their views here. Their views - should freed using view_close_view() */ - - ut_ad(view->m_creator_trx_id == 0); - - UT_LIST_REMOVE(m_views, view); - - UT_LIST_ADD_LAST(m_free, view); - - view = NULL; -} - -/** Allocate and create a view. @param view view owned by this class created for the caller. Must be freed by calling view_close()