mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
git-svn-id: file:///svn/tokudb@4772 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
8bfa4af9f9
commit
96c14cbfe6
2 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,7 @@ TDB_CPPFLAGS = -I../../include
|
|||
SRCS = $(sort $(wildcard *.c))
|
||||
|
||||
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)))
|
||||
|
||||
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) {
|
|||
dbt_init_malloc(&vdbt);
|
||||
i=0;
|
||||
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++;
|
||||
}
|
||||
CKERR2(r, DB_NOTFOUND);
|
||||
printf("i=%d N=%d\n", i, N);
|
||||
//printf("i=%d N=%d\n", i, N);
|
||||
assert(i==N/2);
|
||||
r=c->c_close(c); CKERR(r);
|
||||
r=txn->commit(txn, DB_TXN_NOSYNC); CKERR(r);
|
||||
|
@ -72,7 +72,7 @@ void run (int choice) {
|
|||
DBT kdbt;
|
||||
char key=v[i];
|
||||
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);
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ int main(int argc, const char *argv[]) {
|
|||
r=txn->commit(txn, 0); CKERR(r);
|
||||
}
|
||||
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++) {
|
||||
run(i);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue