|
1 | 1 | /*****************************************************************************
|
2 | 2 |
|
3 | 3 | Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
4 |
| -Copyright (c) 2017, MariaDB Corporation |
| 4 | +Copyright (c) 2017, MariaDB Corporation. |
5 | 5 |
|
6 | 6 | This program is free software; you can redistribute it and/or modify it under
|
7 | 7 | the terms of the GNU General Public License as published by the Free Software
|
@@ -63,23 +63,25 @@ row_vers_non_vc_match(
|
63 | 63 | const dtuple_t* ientry,
|
64 | 64 | mem_heap_t* heap,
|
65 | 65 | ulint* n_non_v_col);
|
66 |
| -/*****************************************************************//** |
67 |
| -Finds out if an active transaction has inserted or modified a secondary |
| 66 | +/** Determine if an active transaction has inserted or modified a secondary |
68 | 67 | index record.
|
69 |
| -@return 0 if committed, else the active transaction id; |
70 |
| -NOTE that this function can return false positives but never false |
71 |
| -negatives. The caller must confirm all positive results by calling |
72 |
| -trx_is_active() while holding lock_sys->mutex. */ |
| 68 | +@param[in] clust_rec clustered index record |
| 69 | +@param[in] clust_index clustered index |
| 70 | +@param[in] rec secondary index record |
| 71 | +@param[in] index secondary index |
| 72 | +@param[in] offsets rec_get_offsets(rec, index) |
| 73 | +@param[in,out] mtr mini-transaction |
| 74 | +@return the active transaction; trx_release_reference() must be invoked |
| 75 | +@retval NULL if the record was committed */ |
73 | 76 | UNIV_INLINE
|
74 | 77 | trx_t*
|
75 | 78 | row_vers_impl_x_locked_low(
|
76 |
| -/*=======================*/ |
77 |
| - const rec_t* clust_rec, /*!< in: clustered index record */ |
78 |
| - dict_index_t* clust_index, /*!< in: the clustered index */ |
79 |
| - const rec_t* rec, /*!< in: secondary index record */ |
80 |
| - dict_index_t* index, /*!< in: the secondary index */ |
81 |
| - const ulint* offsets, /*!< in: rec_get_offsets(rec, index) */ |
82 |
| - mtr_t* mtr) /*!< in/out: mini-transaction */ |
| 79 | + const rec_t* clust_rec, |
| 80 | + dict_index_t* clust_index, |
| 81 | + const rec_t* rec, |
| 82 | + dict_index_t* index, |
| 83 | + const ulint* offsets, |
| 84 | + mtr_t* mtr) |
83 | 85 | {
|
84 | 86 | trx_id_t trx_id;
|
85 | 87 | ibool corrupt;
|
@@ -325,19 +327,18 @@ row_vers_impl_x_locked_low(
|
325 | 327 | DBUG_RETURN(trx);
|
326 | 328 | }
|
327 | 329 |
|
328 |
| -/*****************************************************************//** |
329 |
| -Finds out if an active transaction has inserted or modified a secondary |
| 330 | +/** Determine if an active transaction has inserted or modified a secondary |
330 | 331 | index record.
|
331 |
| -@return 0 if committed, else the active transaction id; |
332 |
| -NOTE that this function can return false positives but never false |
333 |
| -negatives. The caller must confirm all positive results by calling |
334 |
| -trx_is_active() while holding lock_sys->mutex. */ |
| 332 | +@param[in] rec secondary index record |
| 333 | +@param[in] index secondary index |
| 334 | +@param[in] offsets rec_get_offsets(rec, index) |
| 335 | +@return the active transaction; trx_release_reference() must be invoked |
| 336 | +@retval NULL if the record was committed */ |
335 | 337 | trx_t*
|
336 | 338 | row_vers_impl_x_locked(
|
337 |
| -/*===================*/ |
338 |
| - const rec_t* rec, /*!< in: record in a secondary index */ |
339 |
| - dict_index_t* index, /*!< in: the secondary index */ |
340 |
| - const ulint* offsets)/*!< in: rec_get_offsets(rec, index) */ |
| 339 | + const rec_t* rec, |
| 340 | + dict_index_t* index, |
| 341 | + const ulint* offsets) |
341 | 342 | {
|
342 | 343 | mtr_t mtr;
|
343 | 344 | trx_t* trx;
|
|
0 commit comments