提交 a9115701 authored 作者: Thomas Mueller's avatar Thomas Mueller

MVTableEngine

上级 4c470ed9
...@@ -102,6 +102,11 @@ public class RecoverTester implements Recorder { ...@@ -102,6 +102,11 @@ public class RecoverTester implements Recorder {
out.println("+ write #" + writeCount + " verify #" + verifyCount); out.println("+ write #" + writeCount + " verify #" + verifyCount);
try { try {
IOUtils.copyFiles(fileName, testDatabase + Constants.SUFFIX_PAGE_FILE); IOUtils.copyFiles(fileName, testDatabase + Constants.SUFFIX_PAGE_FILE);
String mvFileName = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()) +
Constants.SUFFIX_MV_FILE;
if (FileUtils.exists(mvFileName)) {
IOUtils.copyFiles(mvFileName, testDatabase + Constants.SUFFIX_MV_FILE);
}
verifyCount++; verifyCount++;
// avoid using the Engine class to avoid deadlocks // avoid using the Engine class to avoid deadlocks
Properties p = new Properties(); Properties p = new Properties();
......
...@@ -259,7 +259,7 @@ public class Recover extends Tool implements DataHandler { ...@@ -259,7 +259,7 @@ public class Recover extends Tool implements DataHandler {
} else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) {
dumpLob(fileName, false); dumpLob(fileName, false);
} else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) {
PrintWriter writer = getWriter(fileName, ".mv.txt"); PrintWriter writer = getWriter(fileName, ".txt");
MVStoreTool.dump(fileName, writer); MVStoreTool.dump(fileName, writer);
writer.close(); writer.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论