diff options
author | marko@hundin.mysql.fi <> | 2005-03-07 16:32:24 +0200 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2005-03-07 16:32:24 +0200 |
commit | 42ea96f9fdb07a3018b293d2fafc595172475342 (patch) | |
tree | 93fa45272dde2b91128f3a8b4cdfb0c7f0be9e20 /innobase | |
parent | 3c55fef5a840093a1c053571bb749a387d0baeac (diff) | |
download | mariadb-git-42ea96f9fdb07a3018b293d2fafc595172475342.tar.gz |
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)) { |