1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-12404: Add assertions about Index Condition Pushdown use

Add assertions about limitations one has when using Index Condition
Pushdown:
- add handler::assert_icp_limitations()
- call this function from functions that may attempt violations.

Verified that assert_icp_limitations() as well as calls to it are
compiled away in release build.
This commit is contained in:
Sergei Petrunia
2024-03-13 11:53:31 +03:00
parent ee3d4ec414
commit 159b7ca3f2
2 changed files with 23 additions and 0 deletions

View File

@ -4772,6 +4772,8 @@ public:
in_range_check_pushed_down= false;
}
inline void assert_icp_limitations(uchar *buf);
virtual void cancel_pushed_rowid_filter()
{
pushed_rowid_filter= NULL;