diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:55:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:55:13 +0930 |
commit | 30294c7b91456dd49b89a9b26eb0b1066087815c (patch) | |
tree | 8bf72d6834fafb9e030d120e7f6c881068cdb3af /lib/tdb2/test/run-tdb1-3G-file.c | |
parent | e6cbc0f00ec9ecb4c014ee484746d565382d5f67 (diff) | |
download | samba-30294c7b91456dd49b89a9b26eb0b1066087815c.tar.gz samba-30294c7b91456dd49b89a9b26eb0b1066087815c.tar.bz2 samba-30294c7b91456dd49b89a9b26eb0b1066087815c.zip |
tdb2: unify tdb1_traverse into tdb_traverse
Switch on the TDB_VERSION1 flag; we now only do a tdb1_traverse_read on a
read-only database, as there is no tdb2 equivalent.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit cc2d609dfca7192305ad477b8c2b52cfdc1aa9be)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-3G-file.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-3G-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-tdb1-3G-file.c b/lib/tdb2/test/run-tdb1-3G-file.c index 116c655438..074901857f 100644 --- a/lib/tdb2/test/run-tdb1-3G-file.c +++ b/lib/tdb2/test/run-tdb1-3G-file.c @@ -101,12 +101,12 @@ int main(int argc, char *argv[]) tdb1_unlock(tdb, TDB1_BUCKET(rec.full_hash), F_RDLCK); /* Traverse must work. */ - ok1(tdb1_traverse(tdb, test_traverse, &orig_data) == 1); + ok1(tdb_traverse(tdb, test_traverse, &orig_data) == 1); /* Delete should work. */ ok1(tdb_delete(tdb, key) == TDB_SUCCESS); - ok1(tdb1_traverse(tdb, test_traverse, NULL) == 0); + ok1(tdb_traverse(tdb, test_traverse, NULL) == 0); /* Transactions should work. */ ok1(tdb1_transaction_start(tdb) == 0); @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) free(data.dptr); ok1(tdb1_transaction_commit(tdb) == 0); - ok1(tdb1_traverse(tdb, test_traverse, &orig_data) == 1); + ok1(tdb_traverse(tdb, test_traverse, &orig_data) == 1); tdb_close(tdb); return exit_status(); |