diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-02 12:31:29 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-04 09:42:38 +0300 |
commit | b2775ae85578c0724256dd7cc6794d8b1fc36944 (patch) | |
tree | 9817a85ee56832bc7a3d471ddcdf34647a43518b | |
parent | cbb85f0d214a47a5e56c963a15cf70455425f39f (diff) | |
download | mariadb-git-b2775ae85578c0724256dd7cc6794d8b1fc36944.tar.gz |
MVCC::view_close(): Correct comments
-rw-r--r-- | storage/innobase/include/read0read.h | 7 | ||||
-rw-r--r-- | 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<uintptr_t>(view); |