Commit bad2519b authored by Yoni Fogel's avatar Yoni Fogel

Closes #1572 find_xid now defines a total order on TXNIDs

git-svn-id: file:///svn/toku/tokudb@10374 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7ee5d856
......@@ -1093,7 +1093,9 @@ int toku_read_rollback_backwards(BREAD br, struct roll_entry **item, MEMARENA ma
static int find_xid (OMTVALUE v, void *txnv) {
TOKUTXN txn = v;
TOKUTXN txnfind = txnv;
return txn->txnid64 - txnfind->txnid64;
if (txn->txnid64<txnfind->txnid64) return -1;
if (txn->txnid64>txnfind->txnid64) return +1;
return 0;
}
static int find_filenum (OMTVALUE v, void *brtv) {
......
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