~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/******************************************************
2
Purge old versions
3
4
(c) 1996 Innobase Oy
5
6
Created 3/26/1996 Heikki Tuuri
7
*******************************************************/
8
9
#include "trx0undo.h"
10
11
/************************************************************************
12
Calculates the file address of an undo log header when we have the file
13
address of its history list node. */
14
UNIV_INLINE
15
fil_addr_t
16
trx_purge_get_log_from_hist(
17
/*========================*/
18
					/* out: file address of the log */
19
	fil_addr_t	node_addr)	/* in: file address of the history
20
					list node of the log */
21
{
22
	node_addr.boffset -= TRX_UNDO_HISTORY_NODE;
23
24
	return(node_addr);
25
}
26