diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-01-18 16:56:16 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-01-18 16:56:16 +0200 |
commit | 6373ec3ec74515574f8a08535ed0d090b13d9122 (patch) | |
tree | d2a7393afdf99b7b609a9c911e16a121c862b403 /storage/innobase/include/page0page.h | |
parent | e709eb9bf712006d070767629518f827cd2f6bed (diff) | |
parent | d595a91bc6bfb9f9c38bf91738b2a563d80c62e0 (diff) | |
download | mariadb-git-6373ec3ec74515574f8a08535ed0d090b13d9122.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'storage/innobase/include/page0page.h')
-rw-r--r-- | storage/innobase/include/page0page.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h index 56091c455e1..0876bc54aaf 100644 --- a/storage/innobase/include/page0page.h +++ b/storage/innobase/include/page0page.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2013, 2019, MariaDB Corporation. +Copyright (c) 1994, 2019, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 2013, 2020, MariaDB Corporation. 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 @@ -858,6 +858,22 @@ page_rec_is_last( MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** +true if distance between the records (measured in number of times we have to +move to the next record) is at most the specified value +@param[in] left_rec lefter record +@param[in] right_rec righter record +@param[in] val specified value to compare +@return true if the distance is smaller than the value */ +UNIV_INLINE +bool +page_rec_distance_is_at_most( +/*=========================*/ + const rec_t* left_rec, + const rec_t* right_rec, + ulint val) + MY_ATTRIBUTE((warn_unused_result)); + +/************************************************************//** true if the record is the second last user record on a page. @return true if the second last user record */ UNIV_INLINE |