tdb_off_t off;
uint64_t val, buckets;
struct tdb_context *tdb;
- int flags[] = { TDB_INTERNAL, TDB_DEFAULT,
- TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT };
+ int flags[] = { TDB_INTERNAL, TDB_DEFAULT, TDB_NOMMAP,
+ TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT,
+ TDB_NOMMAP|TDB_CONVERT };
plan_tests(sizeof(flags) / sizeof(flags[0]) * 40 + 1);
/* First, lower level expansion tests. */
for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
- tdb = tdb_open("/tmp/run-new_database.tdb", flags[i],
- O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
- tdb->log = tap_log_fn;
+ tdb = tdb_open("run-expand.tdb", flags[i],
+ O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
ok1(tdb);
if (!tdb)
continue;
/* Now using tdb_expand. */
for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
- tdb = tdb_open("/tmp/run-new_database.tdb", flags[i],
- O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
- tdb->log = tap_log_fn;
+ tdb = tdb_open("run-expand.tdb", flags[i],
+ O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
ok1(tdb);
if (!tdb)
continue;