Fixed an error in assertions

git-svn-id: file:///svn/tokudb@1860 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2008-01-25 01:31:30 +00:00
parent e711fbada5
commit a1872a315f

View file

@ -356,7 +356,8 @@ static void __toku_payload_from_dbt(void** payload, u_int32_t* len,
static void __toku_init_point(toku_point* point, toku_lock_tree* tree, static void __toku_init_point(toku_point* point, toku_lock_tree* tree,
const DBT* key, const DBT* data) { const DBT* key, const DBT* data) {
assert(point && tree && key && data); assert(point && tree && key);
assert((tree->duplicates != 0) == (data != NULL));
memset(point, 0, sizeof(toku_point)); memset(point, 0, sizeof(toku_point));
point->lt = tree; point->lt = tree;