summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/row0upd.ic
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2009-11-13 22:26:08 +0100
committerunknown <knielsen@knielsen-hq.org>2009-11-13 22:26:08 +0100
commit898f6f48b79d1f2c334fb559225b2b0fade5ea93 (patch)
tree84df8eecd942b650f172cbd67050ee8984c0d52b /storage/xtradb/include/row0upd.ic
parent275c0a7f96502b33f763fb9388dcc1c289e4792b (diff)
parent2bde0c5e6d31583e5197e3b513f572a693161f62 (diff)
downloadmariadb-git-898f6f48b79d1f2c334fb559225b2b0fade5ea93.tar.gz
Merge XtraDB 8 into MariaDB.
Diffstat (limited to 'storage/xtradb/include/row0upd.ic')
-rw-r--r--storage/xtradb/include/row0upd.ic77
1 files changed, 41 insertions, 36 deletions
diff --git a/storage/xtradb/include/row0upd.ic b/storage/xtradb/include/row0upd.ic
index a0c23aa6b07..18e22f1eca9 100644
--- a/storage/xtradb/include/row0upd.ic
+++ b/storage/xtradb/include/row0upd.ic
@@ -16,28 +16,31 @@ Place, Suite 330, Boston, MA 02111-1307 USA
*****************************************************************************/
-/******************************************************
+/**************************************************//**
+@file include/row0upd.ic
Update of a row
Created 12/27/1996 Heikki Tuuri
*******************************************************/
#include "mtr0log.h"
-#include "trx0trx.h"
-#include "trx0undo.h"
-#include "row0row.h"
-#include "btr0sea.h"
+#ifndef UNIV_HOTBACKUP
+# include "trx0trx.h"
+# include "trx0undo.h"
+# include "row0row.h"
+# include "btr0sea.h"
+#endif /* !UNIV_HOTBACKUP */
#include "page0zip.h"
-/*************************************************************************
-Creates an update vector object. */
+/*********************************************************************//**
+Creates an update vector object.
+@return own: update vector object */
UNIV_INLINE
upd_t*
upd_create(
/*=======*/
- /* out, own: update vector object */
- ulint n, /* in: number of fields */
- mem_heap_t* heap) /* in: heap from which memory allocated */
+ ulint n, /*!< in: number of fields */
+ mem_heap_t* heap) /*!< in: heap from which memory allocated */
{
upd_t* update;
@@ -51,15 +54,15 @@ upd_create(
return(update);
}
-/*************************************************************************
+/*********************************************************************//**
Returns the number of fields in the update vector == number of columns
-to be updated by an update vector. */
+to be updated by an update vector.
+@return number of fields */
UNIV_INLINE
ulint
upd_get_n_fields(
/*=============*/
- /* out: number of fields */
- const upd_t* update) /* in: update vector */
+ const upd_t* update) /*!< in: update vector */
{
ut_ad(update);
@@ -67,15 +70,15 @@ upd_get_n_fields(
}
#ifdef UNIV_DEBUG
-/*************************************************************************
-Returns the nth field of an update vector. */
+/*********************************************************************//**
+Returns the nth field of an update vector.
+@return update vector field */
UNIV_INLINE
upd_field_t*
upd_get_nth_field(
/*==============*/
- /* out: update vector field */
- const upd_t* update, /* in: update vector */
- ulint n) /* in: field position in update vector */
+ const upd_t* update, /*!< in: update vector */
+ ulint n) /*!< in: field position in update vector */
{
ut_ad(update);
ut_ad(n < update->n_fields);
@@ -84,17 +87,18 @@ upd_get_nth_field(
}
#endif /* UNIV_DEBUG */
-/*************************************************************************
+#ifndef UNIV_HOTBACKUP
+/*********************************************************************//**
Sets an index field number to be updated by an update vector field. */
UNIV_INLINE
void
upd_field_set_field_no(
/*===================*/
- upd_field_t* upd_field, /* in: update vector field */
- ulint field_no, /* in: field number in a clustered
+ upd_field_t* upd_field, /*!< in: update vector field */
+ ulint field_no, /*!< in: field number in a clustered
index */
- dict_index_t* index, /* in: index */
- trx_t* trx) /* in: transaction */
+ dict_index_t* index, /*!< in: index */
+ trx_t* trx) /*!< in: transaction */
{
upd_field->field_no = field_no;
upd_field->orig_len = 0;
@@ -113,15 +117,15 @@ upd_field_set_field_no(
dfield_get_type(&upd_field->new_val));
}
-/*************************************************************************
-Returns a field of an update vector by field_no. */
+/*********************************************************************//**
+Returns a field of an update vector by field_no.
+@return update vector field, or NULL */
UNIV_INLINE
const upd_field_t*
upd_get_field_by_field_no(
/*======================*/
- /* out: update vector field, or NULL */
- const upd_t* update, /* in: update vector */
- ulint no) /* in: field_no */
+ const upd_t* update, /*!< in: update vector */
+ ulint no) /*!< in: field_no */
{
ulint i;
for (i = 0; i < upd_get_n_fields(update); i++) {
@@ -136,20 +140,20 @@ upd_get_field_by_field_no(
return(NULL);
}
-/*************************************************************************
+/*********************************************************************//**
Updates the trx id and roll ptr field in a clustered index record when
a row is updated or marked deleted. */
UNIV_INLINE
void
row_upd_rec_sys_fields(
/*===================*/
- rec_t* rec, /* in/out: record */
- page_zip_des_t* page_zip,/* in/out: compressed page whose
+ rec_t* rec, /*!< in/out: record */
+ page_zip_des_t* page_zip,/*!< in/out: compressed page whose
uncompressed part will be updated, or NULL */
- dict_index_t* index, /* in: clustered index */
- const ulint* offsets,/* in: rec_get_offsets(rec, index) */
- trx_t* trx, /* in: transaction */
- dulint roll_ptr)/* in: roll ptr of the undo log record */
+ dict_index_t* index, /*!< in: clustered index */
+ const ulint* offsets,/*!< in: rec_get_offsets(rec, index) */
+ trx_t* trx, /*!< in: transaction */
+ roll_ptr_t roll_ptr)/*!< in: roll ptr of the undo log record */
{
ut_ad(dict_index_is_clust(index));
ut_ad(rec_offs_validate(rec, index, offsets));
@@ -177,3 +181,4 @@ row_upd_rec_sys_fields(
trx_write_roll_ptr(rec + offset + DATA_TRX_ID_LEN, roll_ptr);
}
}
+#endif /* !UNIV_HOTBACKUP */