641.2.2
by Monty Taylor
InnoDB Plugin 1.0.3 |
1 |
/*****************************************************************************
|
2 |
||
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
3 |
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
|
641.2.2
by Monty Taylor
InnoDB Plugin 1.0.3 |
4 |
|
5 |
This program is free software; you can redistribute it and/or modify it under
|
|
6 |
the terms of the GNU General Public License as published by the Free Software
|
|
7 |
Foundation; version 2 of the License.
|
|
8 |
||
9 |
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11 |
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
12 |
||
13 |
You should have received a copy of the GNU General Public License along with
|
|
1802.10.2
by Monty Taylor
Update all of the copyright headers to include the correct address. |
14 |
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
|
15 |
St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
641.2.2
by Monty Taylor
InnoDB Plugin 1.0.3 |
16 |
|
17 |
*****************************************************************************/
|
|
18 |
||
641.2.3
by Monty Taylor
InnoDB Plugin 1.0.4 |
19 |
/**************************************************//**
|
20 |
@file include/trx0purge.ic
|
|
641.1.2
by Monty Taylor
Imported 1.0.1 with clean - with no changes. |
21 |
Purge old versions
|
22 |
||
23 |
Created 3/26/1996 Heikki Tuuri
|
|
24 |
*******************************************************/
|
|
25 |
||
26 |
#include "trx0undo.h" |
|
27 |
||
641.2.3
by Monty Taylor
InnoDB Plugin 1.0.4 |
28 |
/********************************************************************//**
|
641.1.2
by Monty Taylor
Imported 1.0.1 with clean - with no changes. |
29 |
Calculates the file address of an undo log header when we have the file
|
641.2.3
by Monty Taylor
InnoDB Plugin 1.0.4 |
30 |
address of its history list node.
|
31 |
@return file address of the log */
|
|
641.1.2
by Monty Taylor
Imported 1.0.1 with clean - with no changes. |
32 |
UNIV_INLINE
|
33 |
fil_addr_t
|
|
34 |
trx_purge_get_log_from_hist( |
|
35 |
/*========================*/
|
|
641.2.3
by Monty Taylor
InnoDB Plugin 1.0.4 |
36 |
fil_addr_t node_addr) /*!< in: file address of the history |
641.1.2
by Monty Taylor
Imported 1.0.1 with clean - with no changes. |
37 |
list node of the log */
|
38 |
{
|
|
39 |
node_addr.boffset -= TRX_UNDO_HISTORY_NODE; |
|
40 |
||
41 |
return(node_addr); |
|
42 |
}
|
|
43 |