~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/log0recv.ic

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:30:27 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103033027-lskb6gxwwforfz71
fix docs warning: underline/overline too short for replace.rst

Show diffs side-by-side

added added

removed removed

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