reopen tests were unnecessarily and incorrectly init'ing the buffer manager.
This commit is contained in:
parent
2b1ac8dbc0
commit
22306e68ed
1 changed files with 6 additions and 8 deletions
|
@ -396,8 +396,6 @@ void reopenLogWorkload(int truncating) {
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue