1/*****************************************************************************
2
3Copyright (c) 1997, 2009, Oracle and/or its affiliates. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License, version 2.0,
7as published by the Free Software Foundation.
8
9This program is also distributed with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation.  The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have included with MySQL.
15
16This program is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19GNU General Public License, version 2.0, for more details.
20
21You should have received a copy of the GNU General Public License along with
22this program; if not, write to the Free Software Foundation, Inc.,
2351 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
24
25*****************************************************************************/
26
27/**************************************************//**
28@file include/log0recv.ic
29Recovery
30
31Created 9/20/1997 Heikki Tuuri
32*******************************************************/
33
34#include "univ.i"
35
36/*******************************************************************//**
37Returns TRUE if recovery is currently running.
38@return	recv_recovery_on */
39UNIV_INLINE
40ibool
41recv_recovery_is_on(void)
42/*=====================*/
43{
44	return(recv_recovery_on);
45}
46
47#ifdef UNIV_LOG_ARCHIVE
48/** TRUE when applying redo log records from an archived log file */
49extern ibool	recv_recovery_from_backup_on;
50
51/*******************************************************************//**
52Returns TRUE if recovery from backup is currently running.
53@return	recv_recovery_from_backup_on */
54UNIV_INLINE
55ibool
56recv_recovery_from_backup_is_on(void)
57/*=================================*/
58{
59	return(recv_recovery_from_backup_on);
60}
61#endif /* UNIV_LOG_ARCHIVE */
62