diff options
author | unknown <marko@hundin.mysql.fi> | 2005-03-07 16:32:24 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-03-07 16:32:24 +0200 |
commit | 45c72a5680b5739b4a56f8ca6ae3b102475ecaa3 (patch) | |
tree | 93fa45272dde2b91128f3a8b4cdfb0c7f0be9e20 /innobase | |
parent | 2a66f66dfbed09c6119f8d8495c923f0863762bc (diff) | |
download | mariadb-git-45c72a5680b5739b4a56f8ca6ae3b102475ecaa3.tar.gz |
row0sel.c:
row_search_for_mysql(): Add a clarifying comment.
innobase/row/row0sel.c:
row_search_for_mysql(): Add a clarifying comment.
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/row/row0sel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c index 3a169ba5384..736ca15262c 100644 --- a/innobase/row/row0sel.c +++ b/innobase/row/row0sel.c @@ -3725,6 +3725,12 @@ rec_loop: index_rec = rec; + /* Before and after the following "if" block, "offsets" will be + related to "rec", which may be in "index", a secondary index or + the clustered index ("clust_index"). However, after this "if" block, + "rec" may be pointing to "clust_rec" of "clust_index". */ + ut_ad(rec_offs_validate(rec, index, offsets)); + if (index != clust_index && (cons_read_requires_clust_rec || prebuilt->need_to_access_clustered)) { |