1/*****************************************************************************
2
3Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc.,
1551 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16
17*****************************************************************************/
18
19/**************************************************//**
20@file include/trx0purge.ic
21Purge old versions
22
23Created 3/26/1996 Heikki Tuuri
24*******************************************************/
25
26#include "trx0undo.h"
27
28/********************************************************************//**
29Calculates the file address of an undo log header when we have the file
30address of its history list node.
31@return file address of the log */
32UNIV_INLINE
33fil_addr_t
34trx_purge_get_log_from_hist(
35/*========================*/
36 fil_addr_t node_addr) /*!< in: file address of the history
37 list node of the log */
38{
39 node_addr.boffset -= TRX_UNDO_HISTORY_NODE;
40
41 return(node_addr);
42}
43