~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1997, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
176
176
void
177
177
recv_recovery_from_checkpoint_finish(void);
178
178
/*======================================*/
179
 
/********************************************************//**
180
 
Initiates the rollback of active transactions. */
181
 
UNIV_INTERN
182
 
void
183
 
recv_recovery_rollback_active(void);
184
 
/*===============================*/
185
179
/*******************************************************//**
186
180
Scans log from a buffer and stores new log data to the parsing buffer.
187
181
Parses and hashes the log records if new data found.  Unless
245
239
void
246
240
recv_sys_create(void);
247
241
/*=================*/
248
 
/**********************************************************//**
249
 
Release recovery system mutexes. */
250
 
UNIV_INTERN
251
 
void
252
 
recv_sys_close(void);
253
 
/*================*/
254
 
/********************************************************//**
255
 
Frees the recovery system memory. */
256
 
UNIV_INTERN
257
 
void
258
 
recv_sys_mem_free(void);
259
 
/*===================*/
260
242
/********************************************************//**
261
243
Inits the recovery system for a recovery operation. */
262
244
UNIV_INTERN
264
246
recv_sys_init(
265
247
/*==========*/
266
248
        ulint   available_memory);      /*!< in: available memory in bytes */
267
 
#ifndef UNIV_HOTBACKUP
268
 
/********************************************************//**
269
 
Reset the state of the recovery system variables. */
270
 
UNIV_INTERN
271
 
void
272
 
recv_sys_var_init(void);
273
 
/*===================*/
274
 
#endif /* !UNIV_HOTBACKUP */
275
249
/*******************************************************************//**
276
250
Empties the hash table of stored log records, applying them to appropriate
277
251
pages. */
368
342
struct recv_addr_struct{
369
343
        enum recv_addr_state state;
370
344
                                /*!< recovery state of the page */
371
 
        unsigned        space:32;/*!< space id */
372
 
        unsigned        page_no:32;/*!< page number */
 
345
        ulint           space;  /*!< space id */
 
346
        ulint           page_no;/*!< page number */
373
347
        UT_LIST_BASE_NODE_T(recv_t)
374
348
                        rec_list;/*!< list of log records for this page */
375
349
        hash_node_t     addr_hash;/*!< hash node in the hash bucket chain */
459
433
extern ibool            recv_no_ibuf_operations;
460
434
/** TRUE when recv_init_crash_recovery() has been called. */
461
435
extern ibool            recv_needed_recovery;
462
 
#ifdef UNIV_DEBUG
463
 
/** TRUE if writing to the redo log (mtr_commit) is forbidden.
464
 
Protected by log_sys->mutex. */
465
 
extern ibool            recv_no_log_write;
466
 
#endif /* UNIV_DEBUG */
467
436
 
468
437
/** TRUE if buf_page_is_corrupted() should check if the log sequence
469
438
number (FIL_PAGE_LSN) is in the future.  Initially FALSE, and set by