~clint-fewbar/ubuntu/lucid/mysql-dfsg-5.1/increase-killtimeout

« back to all changes in this revision

Viewing changes to storage/innobase/include/fsp0fsp.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug
  • Date: 2009-08-05 11:40:21 UTC
  • mfrom: (1.1.3 upstream) (0.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20090805114021-59bj0bgfm2ufllbk
Tags: 5.1.37-1ubuntu1
[ Mathias Gug ]
* Merge from debian unstable and 5.0, remaining changes:
  - debian/control:
    + Properly upgrade libmysqlclient16-dev packages to
    libmysqlclient-dev:
      * Make libmysqlclient16-dev a transitional package depending on
        libmysqlclient-dev.
      * Make libmysqlclient-dev replace libmysqlclient16-dev.
    + Don't provide a libmysqlclient15-dev package as long as there are
      packages still build-depending on libmysqlclient15-dev and
      mysql-dsfg-5.0 is in the archive.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.1.files: install apparmor profile.
    - debian/mysql-server-5.1.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.1.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
* debian/libmysqlclient16.symbols.amd64: remove amd64 symbols as it has
  not been correctly generated in Debian.
* Add Apport hook: (LP: #354188)
  - debian/mysql-server-5.1.py: apport package hook.
  - debian/mysql-server-5.1.files, debian/rules: install apport package
    hook.
* debian/additions/my.cnf: 
  - drop old_password option.
  - fix commented logging options to use general_log and general_log_file.
* Dropped - accepted in Debian:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "fut0lst.h"
16
16
#include "ut0byte.h"
17
17
#include "page0types.h"
18
 
 
19
 
/* If records are inserted in order, there are the following
20
 
flags to tell this (their type is made byte for the compiler
21
 
to warn if direction and hint parameters are switched in
22
 
fseg_alloc_free_page): */
23
 
#define FSP_UP          ((byte)111)     /* alphabetically upwards */
24
 
#define FSP_DOWN        ((byte)112)     /* alphabetically downwards */
25
 
#define FSP_NO_DIR      ((byte)113)     /* no order */
26
 
 
27
 
/* File space extent size in pages */
28
 
#define FSP_EXTENT_SIZE         64
29
 
 
30
 
/* On a page of any file segment, data may be put starting from this offset: */
31
 
#define FSEG_PAGE_DATA          FIL_PAGE_DATA
32
 
 
33
 
/* File segment header which points to the inode describing the file segment */
34
 
typedef byte    fseg_header_t;
35
 
 
36
 
#define FSEG_HDR_SPACE          0       /* space id of the inode */
37
 
#define FSEG_HDR_PAGE_NO        4       /* page number of the inode */
38
 
#define FSEG_HDR_OFFSET         8       /* byte offset of the inode */
39
 
 
40
 
#define FSEG_HEADER_SIZE        10
 
18
#include "fsp0types.h"
41
19
 
42
20
/**************************************************************************
43
21
Initializes the file space system. */
350
328
        fseg_header_t*  header, /* in: segment header */
351
329
        mtr_t*          mtr);   /* in: mtr */
352
330
 
353
 
/* Flags for fsp_reserve_free_extents */
354
 
#define FSP_NORMAL      1000000
355
 
#define FSP_UNDO        2000000
356
 
#define FSP_CLEANING    3000000
357
 
 
358
 
/* Number of pages described in a single descriptor page: currently each page
359
 
description takes less than 1 byte; a descriptor page is repeated every
360
 
this many file pages */
361
 
#define XDES_DESCRIBED_PER_PAGE         UNIV_PAGE_SIZE
362
 
 
363
 
/* The space low address page map */
364
 
/*--------------------------------------*/
365
 
                                /* The following two pages are repeated
366
 
                                every XDES_DESCRIBED_PER_PAGE pages in
367
 
                                every tablespace. */
368
 
#define FSP_XDES_OFFSET                 0       /* extent descriptor */
369
 
#define FSP_IBUF_BITMAP_OFFSET          1       /* insert buffer bitmap */
370
 
                                /* The ibuf bitmap pages are the ones whose
371
 
                                page number is the number above plus a
372
 
                                multiple of XDES_DESCRIBED_PER_PAGE */
373
 
 
374
 
#define FSP_FIRST_INODE_PAGE_NO         2       /* in every tablespace */
375
 
                                /* The following pages exist
376
 
                                in the system tablespace (space 0). */
377
 
#define FSP_IBUF_HEADER_PAGE_NO         3       /* in tablespace 0 */
378
 
#define FSP_IBUF_TREE_ROOT_PAGE_NO      4       /* in tablespace 0 */
379
 
                                /* The ibuf tree root page number in
380
 
                                tablespace 0; its fseg inode is on the page
381
 
                                number FSP_FIRST_INODE_PAGE_NO */
382
 
#define FSP_TRX_SYS_PAGE_NO             5       /* in tablespace 0 */
383
 
#define FSP_FIRST_RSEG_PAGE_NO          6       /* in tablespace 0 */
384
 
#define FSP_DICT_HDR_PAGE_NO            7       /* in tablespace 0 */
385
 
/*--------------------------------------*/
386
 
 
387
331
#ifndef UNIV_NONINL
388
332
#include "fsp0fsp.ic"
389
333
#endif