From db2508840d55842ebaf0c0d7a2fa3c855498e75f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Jun 2012 22:30:29 +0930 Subject: ntdb: create initial database to be multiple of NTDB_PGSIZE. As copied from tdb1, there is logic in the transaction code to handle a non-PGSIZE multiple db, but in fact this only happens for a completely unused database: as soon as we add anything to it, it is expanded to a NTDB_PGSIZE multiple. If we create the database with a free record which pads it out to NTDB_PGSIZE, we can remove this last-page-is-different logic. Of course, the fake ntdbs we create in our tests now also need to be multiples of NTDB_PGSIZE, so we change some numbers there too. Signed-off-by: Rusty Russell --- lib/ntdb/test/failtest_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ntdb/test/failtest_helper.h') diff --git a/lib/ntdb/test/failtest_helper.h b/lib/ntdb/test/failtest_helper.h index d347d75fba..5f9166d8d5 100644 --- a/lib/ntdb/test/failtest_helper.h +++ b/lib/ntdb/test/failtest_helper.h @@ -4,7 +4,7 @@ #include /* FIXME: Check these! */ -#define INITIAL_NTDB_MALLOC "open.c", 399, FAILTEST_MALLOC +#define INITIAL_NTDB_MALLOC "open.c", 425, FAILTEST_MALLOC #define URANDOM_OPEN "open.c", 62, FAILTEST_OPEN #define URANDOM_READ "open.c", 42, FAILTEST_READ -- cgit