Commit 35800b4c authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3008], modify comments a bit

git-svn-id: file:///svn/toku/tokudb@25194 c7de825b-a66e-492c-adef-691d508d4ae1
parent c9eb09c1
...@@ -60,17 +60,17 @@ struct __attribute__ ((__packed__)) leafentry { ...@@ -60,17 +60,17 @@ struct __attribute__ ((__packed__)) leafentry {
uint32_t num_cxrs; // number of committed transaction records uint32_t num_cxrs; // number of committed transaction records
uint8_t num_pxrs; // number of provisional transaction records uint8_t num_pxrs; // number of provisional transaction records
u_int8_t key_xrs[0]; //Actual key, u_int8_t key_xrs[0]; //Actual key,
//then TXNIDs of transaction records relevant for reads: //then TXNIDs of XRs relevant for reads:
// if provisional uxrs exist, store OUTERMOST TXNID // if provisional XRs exist, store OUTERMOST TXNID
// store committed TXNIDs, from most recently committed to least recently committed // store committed TXNIDs, from most recently committed to least recently committed
//then lengths of transaction records relevant for reads (length is at most 1<<31, MSB is used to store the type bit): //then lengths of XRs relevant for reads (length is at most 1<<31, MSB is used to store the type bit):
// if provisional xrs exist, store length and type associated with INNERMOST TXNID // if provisional XRs exist, store length and type associated with INNERMOST TXNID
// store length and type associated with committed TXNIDs, in same order as above // store length and type associated with committed TXNIDs, in same order as above
//then data of transaction records relevant for reads //then data of XRs relevant for reads
// if provisional xrs exist, store data associated with INNERMOST TXNID // if provisional XRs exist, store data associated with INNERMOST TXNID
// store data associated with committed TXNIDs // store data associated with committed TXNIDs
//if provisional xrs still exist (that is, num_puxrs > 1, so INNERMOST provisional TXNID != OUTERMOST provisional TXNID): //if provisional XRs still exist (that is, num_puxrs > 1, so INNERMOST provisional TXNID != OUTERMOST provisional TXNID):
// for OUTERMOST provisional TXNID: // for OUTERMOST provisional XR:
// 1 byte: store type // 1 byte: store type
// 4 bytes: length (if type is INSERT) // 4 bytes: length (if type is INSERT)
// data // data
...@@ -79,7 +79,7 @@ struct __attribute__ ((__packed__)) leafentry { ...@@ -79,7 +79,7 @@ struct __attribute__ ((__packed__)) leafentry {
// 1 byte: store type // 1 byte: store type
// 4 bytes: length (if type is INSERT) // 4 bytes: length (if type is INSERT)
// data // data
// for INNERMOST provisional TXNID: // for INNERMOST provisional XR:
// 8 bytes: TXNID // 8 bytes: TXNID
} mvcc; // For the case where LEAFENTRY->type is LE_MVCC } mvcc; // For the case where LEAFENTRY->type is LE_MVCC
} u; } u;
......
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