Commit 819b7787 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3008], more comments

git-svn-id: file:///svn/toku/tokudb@25154 c7de825b-a66e-492c-adef-691d508d4ae1
parent b707293e
......@@ -4296,10 +4296,6 @@ brt_cursor_update(BRT_CURSOR brtcursor) {
//
// Returns true if the value that is to be read is empty.
// If is_read_committed is false, then it checks the innermost value
// (and is the equivalent of le_latest_is_del)
// If is_read_committed is true, then for live transactions, it checks the committed
// value in le. For committed transactions, it checks the innermost value
//
static inline int
is_le_val_empty(LEAFENTRY le, BRT_CURSOR brtcursor) {
......
......@@ -175,10 +175,11 @@ le_clean(uint8_t *key, uint32_t keylen,
//Callback contract:
// Function checks to see if id is accepted by context.
// Returns:
// 0: Ignore this entry and go on to next one.
// TOKUDB_ACCEPT: Quit early, accept this transaction record and return appropriate data
// r|r!=0&&r!=TOKUDB_ACCEPT: Quit early, return r
// 0: context ignores this entry, id.
// TOKUDB_ACCEPT: context accepts id
// r|r!=0&&r!=TOKUDB_ACCEPT: Quit early, return r, because something unexpected went wrong (error case)
typedef int(*LE_ITERATE_CALLBACK)(TXNID id, TOKUTXN context);
int le_iterate_is_empty(LEAFENTRY le, LE_ITERATE_CALLBACK f, BOOL *is_empty, TOKUTXN context);
......
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