summaryrefslogtreecommitdiff
path: root/lib/tdb2/test
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:54:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:54:13 +0930
commite6cbc0f00ec9ecb4c014ee484746d565382d5f67 (patch)
treef6ae2355ebe45421ae623ee439a10d60c3f5ceaa /lib/tdb2/test
parent10606b7e3bdad19a60953dbad9e1d541a1a3b805 (diff)
downloadsamba-e6cbc0f00ec9ecb4c014ee484746d565382d5f67.tar.gz
samba-e6cbc0f00ec9ecb4c014ee484746d565382d5f67.tar.bz2
samba-e6cbc0f00ec9ecb4c014ee484746d565382d5f67.zip
tdb2: unify tdb1_store into tdb_store
Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 2bba2a856a6cfdb93085b701557850bc1da99587)
Diffstat (limited to 'lib/tdb2/test')
-rw-r--r--lib/tdb2/test/run-tdb1-nested-transactions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tdb2/test/run-tdb1-nested-transactions.c b/lib/tdb2/test/run-tdb1-nested-transactions.c
index 645b4bc147..408987b58e 100644
--- a/lib/tdb2/test/run-tdb1-nested-transactions.c
+++ b/lib/tdb2/test/run-tdb1-nested-transactions.c
@@ -54,18 +54,18 @@ int main(int argc, char *argv[])
ok1(tdb1_transaction_start(tdb) == 0);
ok1(tdb_delete(tdb, key) == TDB_SUCCESS);
ok1(tdb1_transaction_commit(tdb) == 0);
- ok1(!tdb1_exists(tdb, key));
+ ok1(!tdb_exists(tdb, key));
ok1(tdb1_transaction_cancel(tdb) == 0);
/* Surprise! Kills inner "committed" transaction. */
- ok1(tdb1_exists(tdb, key));
+ ok1(tdb_exists(tdb, key));
ok1(tdb1_transaction_start(tdb) == 0);
ok1(tdb1_transaction_start(tdb) == 0);
ok1(tdb_delete(tdb, key) == TDB_SUCCESS);
ok1(tdb1_transaction_commit(tdb) == 0);
- ok1(!tdb1_exists(tdb, key));
+ ok1(!tdb_exists(tdb, key));
ok1(tdb1_transaction_commit(tdb) == 0);
- ok1(!tdb1_exists(tdb, key));
+ ok1(!tdb_exists(tdb, key));
tdb_close(tdb);
return exit_status();