Commit 99f23ef5 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

more comments for code review of orthopush


git-svn-id: file:///svn/toku/tokudb@38885 c7de825b-a66e-492c-adef-691d508d4ae1
parent 845b5d55
...@@ -4548,19 +4548,22 @@ find_bounds_within_message_tree( ...@@ -4548,19 +4548,22 @@ find_bounds_within_message_tree(
} }
} }
/**
* For each message in the ancestor's buffer (determined by childnum) that
* is key-wise between lower_bound_exclusive and upper_bound_inclusive,
* apply the message to the basement node. We treat the bounds as minus
* or plus infinity respectively if they are NULL. Do not mark the node
* as dirty (preserve previous state of 'dirty' bit).
*/
static int static int
bnc_apply_messages_to_basement_node( bnc_apply_messages_to_basement_node(
BRT t, BRT t, // used for comparison function
BRTNODE leafnode, BRTNODE leafnode, // used to update header stats for keyrange
BASEMENTNODE bn, BASEMENTNODE bn, // where to apply messages
BRTNODE ancestor, BRTNODE ancestor, // the ancestor node where we can find messages to apply
int childnum, int childnum, // which child buffer of ancestor contains messages we want
struct pivot_bounds const * const bounds struct pivot_bounds const * const bounds // contains pivot key bounds of this basement node
) )
// Effect: For each messages in ANCESTOR that is between lower_bound_exclusive (exclusive) and upper_bound_inclusive (inclusive), apply the message to the node.
// In ANCESTOR, the relevant messages are all in the buffer for child number CHILDNUM.
// Treat the bounds as minus or plus infinity respectively if they are NULL.
// Do not mark the node as dirty (preserve previous state of 'dirty' bit).
{ {
int r; int r;
NONLEAF_CHILDINFO bnc = BNC(ancestor, childnum); NONLEAF_CHILDINFO bnc = BNC(ancestor, childnum);
......
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