summaryrefslogtreecommitdiff
path: root/storage/innobase/include/trx0purge.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/trx0purge.ic')
-rw-r--r--storage/innobase/include/trx0purge.ic26
1 files changed, 26 insertions, 0 deletions
diff --git a/storage/innobase/include/trx0purge.ic b/storage/innobase/include/trx0purge.ic
new file mode 100644
index 00000000000..9f1c0ed96f8
--- /dev/null
+++ b/storage/innobase/include/trx0purge.ic
@@ -0,0 +1,26 @@
+/******************************************************
+Purge old versions
+
+(c) 1996 Innobase Oy
+
+Created 3/26/1996 Heikki Tuuri
+*******************************************************/
+
+#include "trx0undo.h"
+
+/************************************************************************
+Calculates the file address of an undo log header when we have the file
+address of its history list node. */
+UNIV_INLINE
+fil_addr_t
+trx_purge_get_log_from_hist(
+/*========================*/
+ /* out: file address of the log */
+ fil_addr_t node_addr) /* in: file address of the history
+ list node of the log */
+{
+ node_addr.boffset -= TRX_UNDO_HISTORY_NODE;
+
+ return(node_addr);
+}
+