Commit 13f77b1d authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Back out. Addresses #788, #789.

git-svn-id: file:///svn/tokudb@3978 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0da8aea8
......@@ -2619,8 +2619,8 @@ int pair_leafval_bessel_le_committed (u_int32_t klen, void *kval,
search->k ? toku_fill_dbt(&x, kval, klen) : 0,
search->v ? toku_fill_dbt(&y, dval, dlen) : 0);
switch (search->direction) {
case BRT_SEARCH_LEFT: return cmp<0 ? -1 : +1;
case BRT_SEARCH_RIGHT: return cmp>0 ? -1 : +1; // Because the comparison runs backwards for right searches.
case BRT_SEARCH_LEFT: return cmp==0 ? -1 : +1;
case BRT_SEARCH_RIGHT: return cmp==0 ? +1 : -1; // Because the comparison runs backwards for right searches.
}
assert(0);
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