Commit 1e6ac944 authored by Marko Mäkelä's avatar Marko Mäkelä

Correct the comment of row_vers_impl_x_locked()

parent bdeb27a0
/***************************************************************************** /*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -38,19 +39,18 @@ Created 2/6/1997 Heikki Tuuri ...@@ -38,19 +39,18 @@ Created 2/6/1997 Heikki Tuuri
// Forward declaration // Forward declaration
class ReadView; class ReadView;
/*****************************************************************//** /** Determine if an active transaction has inserted or modified a secondary
Finds out if an active transaction has inserted or modified a secondary
index record. index record.
@return 0 if committed, else the active transaction id; @param[in] rec secondary index record
NOTE that this function can return false positives but never false @param[in] index secondary index
negatives. The caller must confirm all positive results by calling @param[in] offsets rec_get_offsets(rec, index)
trx_is_active() while holding lock_sys->mutex. */ @return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
trx_t* trx_t*
row_vers_impl_x_locked( row_vers_impl_x_locked(
/*===================*/ const rec_t* rec,
const rec_t* rec, /*!< in: record in a secondary index */ dict_index_t* index,
dict_index_t* index, /*!< in: the secondary index */ const ulint* offsets);
const ulint* offsets);/*!< in: rec_get_offsets(rec, index) */
/*****************************************************************//** /*****************************************************************//**
Finds out if we must preserve a delete marked earlier version of a clustered Finds out if we must preserve a delete marked earlier version of a clustered
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -63,23 +63,25 @@ row_vers_non_vc_match( ...@@ -63,23 +63,25 @@ row_vers_non_vc_match(
const dtuple_t* ientry, const dtuple_t* ientry,
mem_heap_t* heap, mem_heap_t* heap,
ulint* n_non_v_col); ulint* n_non_v_col);
/*****************************************************************//** /** Determine if an active transaction has inserted or modified a secondary
Finds out if an active transaction has inserted or modified a secondary
index record. index record.
@return 0 if committed, else the active transaction id; @param[in] clust_rec clustered index record
NOTE that this function can return false positives but never false @param[in] clust_index clustered index
negatives. The caller must confirm all positive results by calling @param[in] rec secondary index record
trx_is_active() while holding lock_sys->mutex. */ @param[in] index secondary index
@param[in] offsets rec_get_offsets(rec, index)
@param[in,out] mtr mini-transaction
@return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
UNIV_INLINE UNIV_INLINE
trx_t* trx_t*
row_vers_impl_x_locked_low( row_vers_impl_x_locked_low(
/*=======================*/ const rec_t* clust_rec,
const rec_t* clust_rec, /*!< in: clustered index record */ dict_index_t* clust_index,
dict_index_t* clust_index, /*!< in: the clustered index */ const rec_t* rec,
const rec_t* rec, /*!< in: secondary index record */ dict_index_t* index,
dict_index_t* index, /*!< in: the secondary index */ const ulint* offsets,
const ulint* offsets, /*!< in: rec_get_offsets(rec, index) */ mtr_t* mtr)
mtr_t* mtr) /*!< in/out: mini-transaction */
{ {
trx_id_t trx_id; trx_id_t trx_id;
ibool corrupt; ibool corrupt;
...@@ -325,19 +327,18 @@ row_vers_impl_x_locked_low( ...@@ -325,19 +327,18 @@ row_vers_impl_x_locked_low(
DBUG_RETURN(trx); DBUG_RETURN(trx);
} }
/*****************************************************************//** /** Determine if an active transaction has inserted or modified a secondary
Finds out if an active transaction has inserted or modified a secondary
index record. index record.
@return 0 if committed, else the active transaction id; @param[in] rec secondary index record
NOTE that this function can return false positives but never false @param[in] index secondary index
negatives. The caller must confirm all positive results by calling @param[in] offsets rec_get_offsets(rec, index)
trx_is_active() while holding lock_sys->mutex. */ @return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
trx_t* trx_t*
row_vers_impl_x_locked( row_vers_impl_x_locked(
/*===================*/ const rec_t* rec,
const rec_t* rec, /*!< in: record in a secondary index */ dict_index_t* index,
dict_index_t* index, /*!< in: the secondary index */ const ulint* offsets)
const ulint* offsets)/*!< in: rec_get_offsets(rec, index) */
{ {
mtr_t mtr; mtr_t mtr;
trx_t* trx; trx_t* trx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment