Commit 9aa461b1 authored by Marko Mäkelä's avatar Marko Mäkelä

Minor cleanup

ReadView::ReadView(): Define inline, and remove the memset().

ReadView::~ReadView(): Use the default destructor.
parent 4575ae70
/***************************************************************************** /*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2018, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under 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 the terms of the GNU General Public License as published by the Free Software
...@@ -145,8 +146,7 @@ class ReadView { ...@@ -145,8 +146,7 @@ class ReadView {
friend class ReadView; friend class ReadView;
}; };
public: public:
ReadView(); ReadView() : m_ids(), m_open(false), m_registered(false) {}
~ReadView();
/** Check whether transaction id is valid. /** Check whether transaction id is valid.
@param[in] id transaction id to check @param[in] id transaction id to check
@param[in] name table name */ @param[in] name table name */
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2018, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under 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 the terms of the GNU General Public License as published by the Free Software
...@@ -318,28 +319,6 @@ ReadView::ids_t::insert(value_type value) ...@@ -318,28 +319,6 @@ ReadView::ids_t::insert(value_type value)
} }
} }
/**
ReadView constructor */
ReadView::ReadView()
:
m_low_limit_id(),
m_up_limit_id(),
m_creator_trx_id(),
m_ids(),
m_low_limit_no(),
m_open(false),
m_registered(false)
{
ut_d(::memset(&m_view_list, 0x0, sizeof(m_view_list)));
}
/**
ReadView destructor */
ReadView::~ReadView()
{
// Do nothing
}
/** /**
Copy the transaction ids from the source vector */ Copy the transaction ids from the source vector */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment