Commit 9c760a2b authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2811], modify find_xidp per Bradley's suggestion

git-svn-id: file:///svn/toku/tokudb@23767 c7de825b-a66e-492c-adef-691d508d4ae1
parent bf0f838a
......@@ -418,10 +418,10 @@ TXNID toku_get_oldest_in_live_root_txn_list(TOKUTXN txn) {
//Heaviside function to find a TXNID* by TXNID* (used to find the index)
static int
find_xidp (OMTVALUE v, void *xidv) {
TXNID *xid = v;
TXNID *xidfind = xidv;
if (*xid < *xidfind) return -1;
if (*xid > *xidfind) return +1;
TXNID xid = *(TXNID *)v;
TXNID xidfind = *(TXNID *)xidv;
if (xid < xidfind) return -1;
if (xid > xidfind) return +1;
return 0;
}
......
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