提交 bacab9bc authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

Documentation / Tests / Build

上级 966c6c1a
...@@ -21,8 +21,9 @@ Change Log ...@@ -21,8 +21,9 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Windows / PageStore storage: the cooperative file locking mechanism <li>PageStore storage: the cooperative file locking mechanism
did not always work as expected. did not always work as expected (with very slow computers).
</li>
<li>Temporary CLOB and BLOB objects are now removed while the database is open <li>Temporary CLOB and BLOB objects are now removed while the database is open
(and not just when closing the database). (and not just when closing the database).
</li> </li>
......
...@@ -2031,6 +2031,7 @@ public class TestMVStore extends TestBase { ...@@ -2031,6 +2031,7 @@ public class TestMVStore extends TestBase {
FileUtils.delete(fileName); FileUtils.delete(fileName);
MVStore store = new MVStore.Builder().cacheSize(16). MVStore store = new MVStore.Builder().cacheSize(16).
fileName(fileName).open(); fileName(fileName).open();
try {
MVMap<Integer, String> map = store.openMap("test"); MVMap<Integer, String> map = store.openMap("test");
long last = System.currentTimeMillis(); long last = System.currentTimeMillis();
String data = new String(new char[2500]).replace((char) 0, 'x'); String data = new String(new char[2500]).replace((char) 0, 'x');
...@@ -2051,6 +2052,9 @@ public class TestMVStore extends TestBase { ...@@ -2051,6 +2052,9 @@ public class TestMVStore extends TestBase {
} }
store.commit(); store.commit();
store.close(); store.close();
} finally {
store.closeImmediately();
}
FileUtils.delete(fileName); FileUtils.delete(fileName);
} }
......
...@@ -190,6 +190,9 @@ public class CheckTextFiles { ...@@ -190,6 +190,9 @@ public class CheckTextFiles {
line++; line++;
int lineLength = i - startLinePos; int lineLength = i - startLinePos;
if (file.getName().endsWith(".java")) { if (file.getName().endsWith(".java")) {
if (useCRLF) {
lineLength--;
}
if (lineLength > MAX_SOURCE_LINE_SIZE) { if (lineLength > MAX_SOURCE_LINE_SIZE) {
fail(file, "line too long: " + lineLength, line); fail(file, "line too long: " + lineLength, line);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论