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

Slightly improved output.

上级 30dfd586
...@@ -398,9 +398,6 @@ public class Recover extends Tool implements DataHandler { ...@@ -398,9 +398,6 @@ public class Recover extends Tool implements DataHandler {
} catch (Throwable e) { } catch (Throwable e) {
// this is usually not a problem, because we try both compressed and // this is usually not a problem, because we try both compressed and
// uncompressed // uncompressed
if (trace) {
traceError(fileName, e);
}
} finally { } finally {
IOUtils.closeSilently(fileOut); IOUtils.closeSilently(fileOut);
IOUtils.closeSilently(in); IOUtils.closeSilently(in);
...@@ -979,6 +976,7 @@ public class Recover extends Tool implements DataHandler { ...@@ -979,6 +976,7 @@ public class Recover extends Tool implements DataHandler {
} catch (EOFException e) { } catch (EOFException e) {
// ignore // ignore
} }
writer.println("---- Statistics ----------");
writer.println("-- page count: " + pageCount + " empty: " + emptyPages + " free: " + free); writer.println("-- page count: " + pageCount + " empty: " + emptyPages + " free: " + free);
writer.println("-- page data head: " + pageDataHead + " empty: " + pageDataEmpty + " rows: " + pageDataRows); writer.println("-- page data head: " + pageDataHead + " empty: " + pageDataEmpty + " rows: " + pageDataRows);
for (int i = 0; i < pageTypeCount.length; i++) { for (int i = 0; i < pageTypeCount.length; i++) {
...@@ -1001,6 +999,7 @@ public class Recover extends Tool implements DataHandler { ...@@ -1001,6 +999,7 @@ public class Recover extends Tool implements DataHandler {
DataReader in = new DataReader( DataReader in = new DataReader(
new PageInputStream(writer, this, store, logKey, logFirstTrunkPage, logFirstDataPage, pageSize) new PageInputStream(writer, this, store, logKey, logFirstTrunkPage, logFirstDataPage, pageSize)
); );
writer.println("---- Transaction log ----------");
CompressLZF compress = new CompressLZF(); CompressLZF compress = new CompressLZF();
while (true) { while (true) {
int x = in.read(); int x = in.read();
...@@ -1653,7 +1652,7 @@ public class Recover extends Tool implements DataHandler { ...@@ -1653,7 +1652,7 @@ public class Recover extends Tool implements DataHandler {
} }
private void writeSchema(PrintWriter writer) { private void writeSchema(PrintWriter writer) {
writer.println("----------- schema -----------"); writer.println("---- Schema ----------");
MetaRecord.sort(schema); MetaRecord.sort(schema);
for (MetaRecord m : schema) { for (MetaRecord m : schema) {
String sql = m.getSQL(); String sql = m.getSQL();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论