summaryrefslogtreecommitdiffstats
path: root/lib/ntdb/test/api-open-multiple-times.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/ntdb optimize includes in ntdb testsChristian Ambach2013-12-071-3/+0
| | | | | | | | use the private header (which will use libreplace or system headers) instead of direct includes of system includes Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Rusty Russell <rusty@samba.org>
* ntdb: don't munmap the database on every close.Rusty Russell2012-06-221-1/+4
| | | | | | | | | | Since we can have multiple openers, we should leave the mmap in place for the other openers to use. Enhance the test to check the bug (it still works, because without mmap we fall back to read/write, but performance would be terrible!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ntdb: respect TDB_NO_FSYNC flag for 'make test'Rusty Russell2012-06-221-6/+9
| | | | | | | This reduces test time from 31 seconds to 6, on my laptop. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* TDB2: Goodbye TDB2, Hello NTDB.Rusty Russell2012-06-191-0/+83
This renames everything from tdb2 to ntdb: importantly, we no longer use the tdb_ namespace, so you can link against both ntdb and tdb if you want to. This also enables building of standalone ntdb by the autobuild script. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>