提交 079ad67a authored 作者: Thomas Mueller's avatar Thomas Mueller

When using trace level 3, opening a database no longer prints there is a…

When using trace level 3, opening a database no longer prints there is a EOFException (because that is the expected behavior).
上级 3bef72fd
...@@ -398,12 +398,12 @@ public class PageLog { ...@@ -398,12 +398,12 @@ public class PageLog {
} }
} catch (DbException e) { } catch (DbException e) {
if (e.getErrorCode() == ErrorCode.FILE_CORRUPTED_1) { if (e.getErrorCode() == ErrorCode.FILE_CORRUPTED_1) {
trace.debug("log recovery stopped: " + e.toString()); trace.debug("log recovery stopped");
} else { } else {
throw e; throw e;
} }
} catch (IOException e) { } catch (IOException e) {
trace.debug("log recovery stopped: " + e.toString()); trace.debug("log recovery completed");
} }
undo = new BitField(); undo = new BitField();
if (stage == RECOVERY_STAGE_REDO) { if (stage == RECOVERY_STAGE_REDO) {
...@@ -575,7 +575,7 @@ public class PageLog { ...@@ -575,7 +575,7 @@ public class PageLog {
buffer.writeVarInt(session.getId()); buffer.writeVarInt(session.getId());
buffer.writeString(transaction); buffer.writeString(transaction);
if (buffer.length() >= PageStreamData.getCapacity(pageSize)) { if (buffer.length() >= PageStreamData.getCapacity(pageSize)) {
throw DbException.getInvalidValueException(transaction, "transaction name (too long)"); throw DbException.getInvalidValueException("transaction name (too long)", transaction);
} }
write(buffer); write(buffer);
// store it on a separate log page // store it on a separate log page
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论