diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-07-06 18:17:24 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-07-06 22:18:35 +0300 |
commit | 934d5f95d33ee6980ede7e1990b519fd13bee327 (patch) | |
tree | 632336a7d0b3d58a91d00c611cb79fb020e5f092 /storage/innobase/include/row0vers.h | |
parent | b4c377f21510849a67bcb0c72e8715903883ce4d (diff) | |
parent | 8b0d4cff0760b0a35285c315d82c49631c108baf (diff) | |
download | mariadb-git-934d5f95d33ee6980ede7e1990b519fd13bee327.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'storage/innobase/include/row0vers.h')
-rw-r--r-- | storage/innobase/include/row0vers.h | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/storage/innobase/include/row0vers.h b/storage/innobase/include/row0vers.h index 749f42cbcf3..9869a3acf95 100644 --- a/storage/innobase/include/row0vers.h +++ b/storage/innobase/include/row0vers.h @@ -35,6 +35,7 @@ Created 2/6/1997 Heikki Tuuri #include "rem0types.h" #include "mtr0mtr.h" #include "dict0mem.h" +#include "row0types.h" // Forward declaration class ReadView; @@ -54,27 +55,34 @@ row_vers_impl_x_locked( dict_index_t* index, const ulint* offsets); -/*****************************************************************//** -Finds out if a version of the record, where the version >= the current +/** Finds out if a version of the record, where the version >= the current purge view, should have ientry as its secondary index entry. We check if there is any not delete marked version of the record where the trx id >= purge view, and the secondary index entry == ientry; exactly in this case we return TRUE. +@param[in] also_curr TRUE if also rec is included in the versions + to search; otherwise only versions prior + to it are searched +@param[in] rec record in the clustered index; the caller + must have a latch on the page +@param[in] mtr mtr holding the latch on rec; it will + also hold the latch on purge_view +@param[in] index secondary index +@param[in] ientry secondary index entry +@param[in] roll_ptr roll_ptr for the purge record +@param[in] trx_id transaction ID on the purging record +@param[in,out] vcol_info virtual column information for purge thread. @return TRUE if earlier version should have */ -ibool +bool row_vers_old_has_index_entry( -/*=========================*/ - ibool also_curr,/*!< in: TRUE if also rec is included in the - versions to search; otherwise only versions - prior to it are searched */ - const rec_t* rec, /*!< in: record in the clustered index; the - caller must have a latch on the page */ - mtr_t* mtr, /*!< in: mtr holding the latch on rec; it will - also hold the latch on purge_view */ - dict_index_t* index, /*!< in: the secondary index */ - const dtuple_t* ientry, /*!< in: the secondary index entry */ - roll_ptr_t roll_ptr,/*!< in: roll_ptr for the purge record */ - trx_id_t trx_id);/*!< in: transaction ID on the purging record */ + bool also_curr, + const rec_t* rec, + mtr_t* mtr, + dict_index_t* index, + const dtuple_t* ientry, + roll_ptr_t roll_ptr, + trx_id_t trx_id, + purge_vcol_info_t* vcol_info=NULL); /*****************************************************************//** Constructs the version of a clustered index record which a consistent |