~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/trx0purge.ic

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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