X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-30-exhaust-before-expand.c;h=2279a802a3c1eeb79896a32a659443c67d8c202c;hb=a391b2b900bc6d5c0467869a454bdb5c51b5a3be;hp=ed7c66dde92fff47c314b5c56b4830babd4387eb;hpb=efdf0f2d8f34b4c01c82c558b350ec36c7329b1e;p=ccan diff --git a/ccan/tdb2/test/run-30-exhaust-before-expand.c b/ccan/tdb2/test/run-30-exhaust-before-expand.c index ed7c66dd..2279a802 100644 --- a/ccan/tdb2/test/run-30-exhaust-before-expand.c +++ b/ccan/tdb2/test/run-30-exhaust-before-expand.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" @@ -60,9 +53,9 @@ int main(int argc, char *argv[]) ok1(tdb_check(tdb, NULL, NULL) == 0); ok1(!empty_freetable(tdb)); - size = tdb->map_size; + size = tdb->file->map_size; /* Insert minimal-length records until we expand. */ - for (j = 0; tdb->map_size == size; j++) { + for (j = 0; tdb->file->map_size == size; j++) { was_empty = empty_freetable(tdb); if (tdb_store(tdb, k, k, TDB_INSERT) != 0) err(1, "Failed to store record %i", j);