From b2775ae85578c0724256dd7cc6794d8b1fc36944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Mon, 2 Sep 2019 12:31:29 +0300 Subject: [PATCH] MVCC::view_close(): Correct comments --- storage/innobase/include/read0read.h | 7 ++++--- storage/innobase/read/read0read.cc | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/storage/innobase/include/read0read.h b/storage/innobase/include/read0read.h index 4fe1341c36c..359db1d8c39 100644 --- a/storage/innobase/include/read0read.h +++ b/storage/innobase/include/read0read.h @@ -1,6 +1,7 @@ /***************************************************************************** Copyright (c) 1997, 2013, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 2019, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -49,9 +50,9 @@ public: void view_open(ReadView*& view, trx_t* trx); /** - Close a view created by the above function. - @para view view allocated by trx_open. - @param own_mutex true if caller owns trx_sys_t::mutex */ + Close a view created by view_open(). + @param view view allocated by view_open() + @param own_mutex whether the caller owns trx_sys_t::mutex */ void view_close(ReadView*& view, bool own_mutex); /** diff --git a/storage/innobase/read/read0read.cc b/storage/innobase/read/read0read.cc index 298d2fe4c43..3fd52d5d6dd 100644 --- a/storage/innobase/read/read0read.cc +++ b/storage/innobase/read/read0read.cc @@ -740,11 +740,9 @@ MVCC::size() const /** Close a view created by the above function. -@para view view allocated by trx_open. -@param own_mutex true if caller owns trx_sys_t::mutex */ - -void -MVCC::view_close(ReadView*& view, bool own_mutex) +@param view view allocated by view_open() +@param own_mutex whether the caller owns trx_sys_t::mutex */ +void MVCC::view_close(ReadView*& view, bool own_mutex) { uintptr_t p = reinterpret_cast(view);