Skip to content

Commit b2775ae

Browse files
committed
MVCC::view_close(): Correct comments
1 parent cbb85f0 commit b2775ae

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

storage/innobase/include/read0read.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 1997, 2013, Oracle and/or its affiliates. All Rights Reserved.
4+
Copyright (c) 2019, MariaDB Corporation.
45
56
This program is free software; you can redistribute it and/or modify it under
67
the terms of the GNU General Public License as published by the Free Software
@@ -49,9 +50,9 @@ class MVCC {
4950
void view_open(ReadView*& view, trx_t* trx);
5051

5152
/**
52-
Close a view created by the above function.
53-
@para view view allocated by trx_open.
54-
@param own_mutex true if caller owns trx_sys_t::mutex */
53+
Close a view created by view_open().
54+
@param view view allocated by view_open()
55+
@param own_mutex whether the caller owns trx_sys_t::mutex */
5556
void view_close(ReadView*& view, bool own_mutex);
5657

5758
/**

storage/innobase/read/read0read.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,9 @@ MVCC::size() const
740740

741741
/**
742742
Close a view created by the above function.
743-
@para view view allocated by trx_open.
744-
@param own_mutex true if caller owns trx_sys_t::mutex */
745-
746-
void
747-
MVCC::view_close(ReadView*& view, bool own_mutex)
743+
@param view view allocated by view_open()
744+
@param own_mutex whether the caller owns trx_sys_t::mutex */
745+
void MVCC::view_close(ReadView*& view, bool own_mutex)
748746
{
749747
uintptr_t p = reinterpret_cast<uintptr_t>(view);
750748

0 commit comments

Comments
 (0)