提交 2cdc5f9a authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 8667bd06
......@@ -480,9 +480,7 @@ public static final boolean REUSE_SPACE_QUICKLY = getBooleanSetting("h2.reuseSpa
* INTERNAL
*/
public static int getLogFileDeleteDelay() {
int test;
return getIntSetting(H2_LOG_DELETE_DELAY, 0);
//return getIntSetting(H2_LOG_DELETE_DELAY, 1000);
}
/**
......
......@@ -1408,8 +1408,6 @@ public class Database implements DataHandler {
public void deleteLogFileLater(String fileName) throws SQLException {
if (writer != null) {
int test;
//FileUtils.rename(fileName, fileName + ".trace.db");
writer.deleteLogFileLater(fileName);
} else {
FileUtils.delete(fileName);
......
......@@ -389,9 +389,7 @@ public class LogSystem {
storageId = -storageId;
}
currentLog.addTruncate(session, storageId, recordId, blockCount);
int test;
// if (currentLog.getFileSize() > maxLogSize) {
if (currentLog.getFileSize()*100 > maxLogSize) {
if (currentLog.getFileSize() > maxLogSize) {
checkpoint();
}
}
......@@ -415,9 +413,7 @@ int test;
session.addLogPos(log, pos);
record.setLastLog(log, pos);
currentLog.add(session, storageId, record);
int test;
// if (currentLog.getFileSize() > maxLogSize) {
if (currentLog.getFileSize()*100 > maxLogSize) {
if (currentLog.getFileSize() > maxLogSize) {
checkpoint();
}
}
......
......@@ -133,16 +133,9 @@ public abstract class TestBase {
if (admin) {
url += ";LOG=" + config.logMode;
}
int test;
// if (config.smallLog && admin) {
// url += ";MAX_LOG_SIZE=1";
// }
if (admin) {
url += ";MAX_LOG_SIZE=1";
}
if (config.smallLog && admin) {
url += ";MAX_LOG_SIZE=1";
}
if (config.diskUndo && admin) {
url += ";MAX_MEMORY_UNDO=3";
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论