diff options
Diffstat (limited to 'storage/innobase/include/trx0purge.ic')
-rw-r--r-- | storage/innobase/include/trx0purge.ic | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/storage/innobase/include/trx0purge.ic b/storage/innobase/include/trx0purge.ic index de09e393654..ca9cc1fb894 100644 --- a/storage/innobase/include/trx0purge.ic +++ b/storage/innobase/include/trx0purge.ic @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved. +Copyright (c) 1996, 2009, Oracle and/or its affiliates. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA +this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA *****************************************************************************/ @@ -41,3 +41,22 @@ trx_purge_get_log_from_hist( return(node_addr); } +#ifdef UNIV_DEBUG +/********************************************************************//** +address of its history list node. +@return TRUE if purge_sys_t::limit <= purge_sys_t::iter*/ +UNIV_INLINE +ibool +trx_purge_check_limit(void) +/*=======================*/ +{ + ut_ad(purge_sys->limit.trx_no <= purge_sys->iter.trx_no); + + if (purge_sys->limit.trx_no == purge_sys->iter.trx_no) { + ut_ad(purge_sys->limit.undo_no <= purge_sys->iter.undo_no); + } + + return(TRUE); +} +#endif /* UNIV_DEBUG */ + |