Commit 55aa8dc0 authored by marko's avatar marko

branches/zip: struct read_view_struct: Add clarifying comments about

low_limit_id and up_limit_id.
parent 7d1a0d65
...@@ -133,16 +133,21 @@ struct read_view_struct{ ...@@ -133,16 +133,21 @@ struct read_view_struct{
can be removed in purge if not needed by other can be removed in purge if not needed by other
views */ views */
dulint low_limit_id; /* The read should not see any transaction dulint low_limit_id; /* The read should not see any transaction
with trx id >= this value */ with trx id >= this value. In other words,
this is the "high water mark". */
dulint up_limit_id; /* The read should see all trx ids which dulint up_limit_id; /* The read should see all trx ids which
are strictly smaller (<) than this value */ are strictly smaller (<) than this value.
In other words,
this is the "low water mark". */
ulint n_trx_ids; /* Number of cells in the trx_ids array */ ulint n_trx_ids; /* Number of cells in the trx_ids array */
dulint* trx_ids; /* Additional trx ids which the read should dulint* trx_ids; /* Additional trx ids which the read should
not see: typically, these are the active not see: typically, these are the active
transactions at the time when the read is transactions at the time when the read is
serialized, except the reading transaction serialized, except the reading transaction
itself; the trx ids in this array are in a itself; the trx ids in this array are in a
descending order */ descending order. These trx_ids should be
between the "low" and "high" water marks,
that is, up_limit_id and low_limit_id. */
dulint creator_trx_id; /* trx id of creating transaction, or dulint creator_trx_id; /* trx id of creating transaction, or
(0, 0) used in purge */ (0, 0) used in purge */
UT_LIST_NODE_T(read_view_t) view_list; UT_LIST_NODE_T(read_view_t) view_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment