diff options
Diffstat (limited to 'innobase/include/mtr0mtr.h')
-rw-r--r-- | innobase/include/mtr0mtr.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/innobase/include/mtr0mtr.h b/innobase/include/mtr0mtr.h index c47fb54a6f8..9cf592f71e1 100644 --- a/innobase/include/mtr0mtr.h +++ b/innobase/include/mtr0mtr.h @@ -132,16 +132,6 @@ void mtr_commit( /*=======*/ mtr_t* mtr); /* in: mini-transaction */ -/**************************************************************** -Writes to the database log the full contents of the pages that this mtr is -the first to modify in the buffer pool. This function is called when the -database is in the online backup state. */ - -void -mtr_log_write_backup_entries( -/*=========================*/ - mtr_t* mtr, /* in: mini-transaction */ - dulint backup_lsn); /* in: online backup lsn */ /************************************************************** Sets and returns a savepoint in mtr. */ UNIV_INLINE @@ -205,7 +195,6 @@ mtr_read_dulint( /*===========*/ /* out: value read */ byte* ptr, /* in: pointer from where to read */ - ulint type, /* in: MLOG_8BYTES */ mtr_t* mtr); /* in: mini-transaction handle */ /************************************************************************* This macro locks an rw-lock in s-mode. */ @@ -306,7 +295,12 @@ struct mtr_memo_slot_struct{ /* Mini-transaction handle and buffer */ struct mtr_struct{ +#ifdef UNIV_DEBUG ulint state; /* MTR_ACTIVE, MTR_COMMITTING, MTR_COMMITTED */ +#define MTR_ACTIVE 12231 +#define MTR_COMMITTING 56456 +#define MTR_COMMITTED 34676 +#endif /* UNIV_DEBUG */ dyn_array_t memo; /* memo stack for locks etc. */ dyn_array_t log; /* mini-transaction log */ ibool modifications; @@ -321,15 +315,12 @@ struct mtr_struct{ this mtr */ dulint end_lsn;/* end lsn of the possible log entry for this mtr */ +#ifdef UNIV_DEBUG ulint magic_n; -}; - #define MTR_MAGIC_N 54551 +#endif /* UNIV_DEBUG */ +}; -#define MTR_ACTIVE 12231 -#define MTR_COMMITTING 56456 -#define MTR_COMMITTED 34676 - #ifndef UNIV_NONINL #include "mtr0mtr.ic" #endif |