Commit 585fe759 authored by Rich Prohaska's avatar Rich Prohaska

move the crash from deep in tokudb to the app. addresses #48

git-svn-id: file:///svn/tokudb@874 c7de825b-a66e-492c-adef-691d508d4ae1
parent f683d674
...@@ -162,13 +162,15 @@ void verify_gone() { ...@@ -162,13 +162,15 @@ void verify_gone() {
r = dbp->get(dbp, null_txn, &key, &data, 0); assert(r == DB_NOTFOUND); r = dbp->get(dbp, null_txn, &key, &data, 0); assert(r == DB_NOTFOUND);
/* Try (fail) to get it from secondary. */ /* Try (fail) to get it from secondary. */
setup_student(&s); setup_student(&s); memset(&data, 0, sizeof data); data.data = &s; data.size = sizeof s;
r = getname(sdbp, NULL, &data, &skey); CKERR(r); r = getname(sdbp, NULL, &data, &skey); CKERR(r);
memset(&data, 0, sizeof data);
r = sdbp->get(sdbp, null_txn, &skey, &data, 0); assert(r == DB_NOTFOUND); r = sdbp->get(sdbp, null_txn, &skey, &data, 0); assert(r == DB_NOTFOUND);
/* Try (fail) to pget from secondary */ /* Try (fail) to pget from secondary */
setup_student(&s); setup_student(&s); memset(&data, 0, sizeof data); data.data = &s; data.size = sizeof s;
r = getname(sdbp, NULL, &data, &skey); CKERR(r); r = getname(sdbp, NULL, &data, &skey); CKERR(r);
memset(&data, 0, sizeof data);
r = sdbp->pget(sdbp, null_txn, &skey, &key, &data, 0);assert(r == DB_NOTFOUND); r = sdbp->pget(sdbp, null_txn, &skey, &key, &data, 0);assert(r == DB_NOTFOUND);
} }
......
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