~jobinau/drizzle/bug_654164

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2010-11-26 22:50:54 UTC
  • mfrom: (1953.1.6 build)
  • Revision ID: mordred@inaugust.com-20101126225054-sg90svw8579t5p3i
Stewart - InnoDB 1.1.1
Monty - Fixed some autoconf tests which were returning false positives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2010, 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
431
431
        const ulint     id);    /*!< in: id of the file format */
432
432
 
433
433
#endif /* !UNIV_HOTBACKUP */
 
434
/*********************************************************************
 
435
Creates the rollback segments */
 
436
UNIV_INTERN
 
437
void
 
438
trx_sys_create_rsegs(
 
439
/*=================*/
 
440
        ulint   n_rsegs);       /*!< number of rollback segments to create */
 
441
 
434
442
/* The automatically created system rollback segment has this id */
435
443
#define TRX_SYS_SYSTEM_RSEG_ID  0
436
444
 
465
473
                                        slots */
466
474
/*------------------------------------------------------------- @} */
467
475
 
468
 
/** Maximum number of rollback segments: the number of segment
469
 
specification slots in the transaction system array; rollback segment
470
 
id must fit in one byte, therefore 256; each slot is currently 8 bytes
471
 
in size */
472
 
#define TRX_SYS_N_RSEGS         256
 
476
/* Max number of rollback segments: the number of segment specification slots
 
477
in the transaction system array; rollback segment id must fit in one (signed)
 
478
byte, therefore 128; each slot is currently 8 bytes in size. If you want
 
479
to raise the level to 256 then you will need to fix some assertions that
 
480
impose the 7 bit restriction. e.g., mach_write_to_3() */
 
481
#define TRX_SYS_N_RSEGS                 128
 
482
/* Originally, InnoDB defined TRX_SYS_N_RSEGS as 256 but created only one
 
483
rollback segment.  It initialized some arrays with this number of entries.
 
484
We must remember this limit in order to keep file compatibility. */
 
485
#define TRX_SYS_OLD_N_RSEGS             256
473
486
 
474
487
/** Maximum length of MySQL binlog file name, in bytes.
475
488
@see trx_sys_mysql_master_log_name