Commit 96c14cbf authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Cleanup. Addresses #944, #938.

git-svn-id: file:///svn/tokudb@4772 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8bfa4af9
...@@ -51,7 +51,7 @@ TDB_CPPFLAGS = -I../../include ...@@ -51,7 +51,7 @@ TDB_CPPFLAGS = -I../../include
SRCS = $(sort $(wildcard *.c)) SRCS = $(sort $(wildcard *.c))
TDB_TESTS = $(patsubst %.c,%.tdb,$(SRCS)) TDB_TESTS = $(patsubst %.c,%.tdb,$(SRCS))
BDB_DONTRUN = bug627 test_abort1 keyrange keyrange-unflat keyrange-dupsort keyrange-dupsort-unflat manyfiles BDB_DONTRUN = bug627 test_abort1 keyrange keyrange-unflat keyrange-dupsort keyrange-dupsort-unflat manyfiles test_938c
BDB_TESTS = $(patsubst %.c,%.bdb,$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS))) BDB_TESTS = $(patsubst %.c,%.bdb,$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS)))
TDB_TESTS_THAT_SHOULD_FAIL = test_groupcommit_count test-recover1 test-recover2 test-recover3 test_txn_recover3 test944 TDB_TESTS_THAT_SHOULD_FAIL = test_groupcommit_count test-recover1 test-recover2 test-recover3 test_txn_recover3 test944
......
...@@ -57,11 +57,11 @@ void run (int choice) { ...@@ -57,11 +57,11 @@ void run (int choice) {
dbt_init_malloc(&vdbt); dbt_init_malloc(&vdbt);
i=0; i=0;
while (0==(r=c->c_get(c, &kdbt, &vdbt, DB_NEXT))) { while (0==(r=c->c_get(c, &kdbt, &vdbt, DB_NEXT))) {
printf("Got %d %d\n", *(unsigned char*)kdbt.data, *(unsigned char*)vdbt.data); //printf("Got %d %d\n", *(unsigned char*)kdbt.data, *(unsigned char*)vdbt.data);
i++; i++;
} }
CKERR2(r, DB_NOTFOUND); CKERR2(r, DB_NOTFOUND);
printf("i=%d N=%d\n", i, N); //printf("i=%d N=%d\n", i, N);
assert(i==N/2); assert(i==N/2);
r=c->c_close(c); CKERR(r); r=c->c_close(c); CKERR(r);
r=txn->commit(txn, DB_TXN_NOSYNC); CKERR(r); r=txn->commit(txn, DB_TXN_NOSYNC); CKERR(r);
...@@ -72,7 +72,7 @@ void run (int choice) { ...@@ -72,7 +72,7 @@ void run (int choice) {
DBT kdbt; DBT kdbt;
char key=v[i]; char key=v[i];
r=db->del(db, txn, dbt_init(&kdbt, &key, 1), 0); CKERR(r); r=db->del(db, txn, dbt_init(&kdbt, &key, 1), 0); CKERR(r);
printf(" del %d\n", key); //printf(" del %d\n", key);
} }
r=txn->commit(txn, DB_TXN_NOSYNC); CKERR(r); r=txn->commit(txn, DB_TXN_NOSYNC); CKERR(r);
} }
...@@ -122,7 +122,7 @@ int main(int argc, const char *argv[]) { ...@@ -122,7 +122,7 @@ int main(int argc, const char *argv[]) {
r=txn->commit(txn, 0); CKERR(r); r=txn->commit(txn, 0); CKERR(r);
} }
int i; int i;
printf("fact(%d)=%d\n", N, fact(N)); //printf("fact(%d)=%d\n", N, fact(N));
for (i=0; i<fact(N); i++) { for (i=0; i<fact(N); i++) {
run(i); run(i);
} }
......
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