~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/row0row.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

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, 2011, Oracle and/or its affiliates. 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
38
38
#include "btr0types.h"
39
39
 
40
40
/*********************************************************************//**
41
 
Gets the offset of the trx id field, in bytes relative to the origin of
 
41
Gets the offset of the DB_TRX_ID field, in bytes relative to the origin of
42
42
a clustered index record.
43
43
@return offset of DATA_TRX_ID */
44
 
UNIV_INTERN
 
44
UNIV_INLINE
45
45
ulint
46
46
row_get_trx_id_offset(
47
47
/*==================*/
48
 
        const rec_t*    rec,    /*!< in: record */
49
 
        dict_index_t*   index,  /*!< in: clustered index */
50
 
        const ulint*    offsets);/*!< in: rec_get_offsets(rec, index) */
 
48
        const dict_index_t*     index,  /*!< in: clustered index */
 
49
        const ulint*            offsets)/*!< in: record offsets */
 
50
        __attribute__((nonnull, warn_unused_result));
51
51
/*********************************************************************//**
52
52
Reads the trx id field from a clustered index record.
53
53
@return value of the field */
55
55
trx_id_t
56
56
row_get_rec_trx_id(
57
57
/*===============*/
58
 
        const rec_t*    rec,    /*!< in: record */
59
 
        dict_index_t*   index,  /*!< in: clustered index */
60
 
        const ulint*    offsets);/*!< in: rec_get_offsets(rec, index) */
 
58
        const rec_t*            rec,    /*!< in: record */
 
59
        const dict_index_t*     index,  /*!< in: clustered index */
 
60
        const ulint*            offsets)/*!< in: rec_get_offsets(rec, index) */
 
61
        __attribute__((nonnull, warn_unused_result));
61
62
/*********************************************************************//**
62
63
Reads the roll pointer field from a clustered index record.
63
64
@return value of the field */
65
66
roll_ptr_t
66
67
row_get_rec_roll_ptr(
67
68
/*=================*/
68
 
        const rec_t*    rec,    /*!< in: record */
69
 
        dict_index_t*   index,  /*!< in: clustered index */
70
 
        const ulint*    offsets);/*!< in: rec_get_offsets(rec, index) */
 
69
        const rec_t*            rec,    /*!< in: record */
 
70
        const dict_index_t*     index,  /*!< in: clustered index */
 
71
        const ulint*            offsets)/*!< in: rec_get_offsets(rec, index) */
 
72
        __attribute__((nonnull, warn_unused_result));
71
73
/*****************************************************************//**
72
74
When an insert or purge to a table is performed, this function builds
73
75
the entry to be inserted into or purged from an index on the table.