summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/run-tdb1-readonly-check.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:35:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:35:13 +0930
commit9b98acbba304f2c1c1fba5bda672e1005151e526 (patch)
tree64dfb0b094bd57aa403a96be95097b6db9732553 /lib/tdb2/test/run-tdb1-readonly-check.c
parent61b1bd1dca145a0417907793579352c66b016c23 (diff)
downloadsamba-9b98acbba304f2c1c1fba5bda672e1005151e526.tar.gz
samba-9b98acbba304f2c1c1fba5bda672e1005151e526.tar.bz2
samba-9b98acbba304f2c1c1fba5bda672e1005151e526.zip
tdb2: Make TDB1 code use TDB2's open flags.
This means getting rid of TDB_VOLATILE (perhaps we should use an attribute for that?), TDB_INCOMPATIBLE_HASH (use the tdb_attribute_hash for that) and TDB_CLEAR_IF_FIRST (use the tdb_attribute_openhook for that). We also get rid of TDB_DISALLOW_NESTING: that's the default for TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 22d0e0dc59fc9d7e0046fec6971ef478c2d604fd)
Diffstat (limited to 'lib/tdb2/test/run-tdb1-readonly-check.c')
-rw-r--r--lib/tdb2/test/run-tdb1-readonly-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb2/test/run-tdb1-readonly-check.c b/lib/tdb2/test/run-tdb1-readonly-check.c
index a764f2da42..ae47aa747d 100644
--- a/lib/tdb2/test/run-tdb1-readonly-check.c
+++ b/lib/tdb2/test/run-tdb1-readonly-check.c
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
plan_tests(11);
tdb = tdb1_open_ex("run-readonly-check.tdb", 1024,
- TDB1_DEFAULT,
+ TDB_DEFAULT,
O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
ok1(tdb);
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
ok1(tdb1_close(tdb) == 0);
tdb = tdb1_open_ex("run-readonly-check.tdb", 1024,
- TDB1_DEFAULT, O_RDONLY, 0, &taplogctx, NULL);
+ TDB_DEFAULT, O_RDONLY, 0, &taplogctx, NULL);
ok1(tdb);
ok1(tdb1_store(tdb, key, data, TDB_MODIFY) == -1);