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