reopen tests were unnecessarily and incorrectly init'ing the buffer manager.

This commit is contained in:
Sears Russell 2007-04-21 02:27:54 +00:00
parent 2b1ac8dbc0
commit 22306e68ed

View file

@ -396,8 +396,6 @@ void reopenLogWorkload(int truncating) {
lladd_enableAutoTruncation = 0; lladd_enableAutoTruncation = 0;
numActiveXactions = 0; numActiveXactions = 0;
dirtyPagesInit();
bufInit(BUFFER_MANAGER_REOPEN);
LogInit(loggerType); LogInit(loggerType);
int xid = 1; int xid = 1;
@ -417,9 +415,10 @@ void reopenLogWorkload(int truncating) {
} }
} }
} }
LogDeinit(loggerType);
LogDeinit();
LogInit(loggerType); LogInit(loggerType);
LogHandle h; LogHandle h;
int i; int i;
@ -477,12 +476,11 @@ void reopenLogWorkload(int truncating) {
assert(i == (ENTRY_COUNT * 2)); assert(i == (ENTRY_COUNT * 2));
lladd_enableAutoTruncation = 1; lladd_enableAutoTruncation = 1;
LogDeinit();
bufDeinit(BUFFER_MANAGER_REOPEN);
} }
START_TEST(loggerReopenTest) { START_TEST(loggerReopenTest) {
deleteLogWriter();
reopenLogWorkload(0); reopenLogWorkload(0);
} END_TEST } END_TEST