Commit a1872a31 authored by Yoni Fogel's avatar Yoni Fogel

addresses #293

Fixed an error in assertions

git-svn-id: file:///svn/tokudb@1860 c7de825b-a66e-492c-adef-691d508d4ae1
parent e711fbad
...@@ -356,7 +356,8 @@ static void __toku_payload_from_dbt(void** payload, u_int32_t* len, ...@@ -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;
......
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