From 22306e68edd0b2f935d73f18039dd56ebe8d7079 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sat, 21 Apr 2007 02:27:54 +0000 Subject: [PATCH] reopen tests were unnecessarily and incorrectly init'ing the buffer manager. --- test/lladd/check_logWriter.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/lladd/check_logWriter.c b/test/lladd/check_logWriter.c index 185ec87..4b0721c 100644 --- a/test/lladd/check_logWriter.c +++ b/test/lladd/check_logWriter.c @@ -390,14 +390,12 @@ START_TEST(loggerCheckThreaded) { void reopenLogWorkload(int truncating) { lladd_enableAutoTruncation = 0; - + const int ENTRY_COUNT = 1000; const int SYNC_POINT = 900; lladd_enableAutoTruncation = 0; numActiveXactions = 0; - dirtyPagesInit(); - bufInit(BUFFER_MANAGER_REOPEN); LogInit(loggerType); int xid = 1; @@ -417,9 +415,10 @@ void reopenLogWorkload(int truncating) { } } } - LogDeinit(loggerType); - + + LogDeinit(); LogInit(loggerType); + LogHandle h; int i; @@ -477,12 +476,11 @@ void reopenLogWorkload(int truncating) { assert(i == (ENTRY_COUNT * 2)); lladd_enableAutoTruncation = 1; - - bufDeinit(BUFFER_MANAGER_REOPEN); + LogDeinit(); } START_TEST(loggerReopenTest) { - + deleteLogWriter(); reopenLogWorkload(0); } END_TEST