Commit 690f5c0c authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Remove the silly extra check at the end of pmainternal_find

git-svn-id: file:///svn/tokudb@115 c7de825b-a66e-492c-adef-691d508d4ae1
parent 25376269
......@@ -151,12 +151,14 @@ int pmainternal_find (PMA pma, DBT *k, DB *db) {
assert(0<=lo);
assert(lo==hi);
assert(hi <= pma_index_limit(pma));
#if 0
/* If lo points at something, the something should not be smaller than key. */
if (lo>0 && lo < pma_index_limit(pma) && pma->pairs[lo]) {
//printf("lo=%d\n", lo);
DBT k2;
assert(0 >= pma->compare_fun(db, k, fill_dbt(&k2, pma->pairs[lo]->key, pma->pairs[lo]->keylen)));
}
#endif
return lo;
}
......
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