You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7 KiB

  1. /*****************************************************************************
  2. Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
  3. This program is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU General Public License as published by the Free Software
  5. Foundation; version 2 of the License.
  6. This program is distributed in the hope that it will be useful, but WITHOUT
  7. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  8. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along with
  10. this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  11. Place, Suite 330, Boston, MA 02111-1307 USA
  12. *****************************************************************************/
  13. /**************************************************//**
  14. @file include/log0recv.ic
  15. Recovery
  16. Created 9/20/1997 Heikki Tuuri
  17. *******************************************************/
  18. #include "univ.i"
  19. /*******************************************************************//**
  20. Returns TRUE if recovery is currently running.
  21. @return recv_recovery_on */
  22. UNIV_INLINE
  23. ibool
  24. recv_recovery_is_on(void)
  25. /*=====================*/
  26. {
  27. return(UNIV_UNLIKELY(recv_recovery_on));
  28. }
  29. #ifdef UNIV_LOG_ARCHIVE
  30. /** TRUE when applying redo log records from an archived log file */
  31. extern ibool recv_recovery_from_backup_on;
  32. /*******************************************************************//**
  33. Returns TRUE if recovery from backup is currently running.
  34. @return recv_recovery_from_backup_on */
  35. UNIV_INLINE
  36. ibool
  37. recv_recovery_from_backup_is_on(void)
  38. /*=================================*/
  39. {
  40. return(recv_recovery_from_backup_on);
  41. }
  42. #endif /* UNIV_LOG_ARCHIVE */