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

Documentation / formatting

上级 d74f2413
......@@ -44,8 +44,10 @@ TransactionStore:
MVStore:
- better and clearer memory usage accounting rules
(heap memory versus disk memory), so that even there is never an out of memory
even for a small heap, and so that chunks are still relatively big on average
(heap memory versus disk memory), so that even there is
never an out of memory
even for a small heap, and so that chunks
are still relatively big on average
- make sure serialization / deserialization errors don't corrupt the file
- FileStore: don't open and close when set using MVStore.Builder.fileStore
- test and possibly improve compact operation (for large dbs)
......@@ -273,7 +275,7 @@ public class MVStore {
private long autoCompactLastFileOpCount;
private Object compactSync = new Object();
private IllegalStateException panicException;
/**
......@@ -797,7 +799,7 @@ public class MVStore {
}
closeStore(true);
}
/**
* Close the file and the store, without writing anything. This will stop
* the background thread. This method ignores all errors.
......
......@@ -100,7 +100,7 @@ public class TestFunctions extends TestBase implements AggregateFunction {
deleteDb("functions");
FileUtils.deleteRecursive(TEMP_DIR, true);
}
private void testDataType() throws SQLException {
Connection conn = getConnection("functions");
Statement stat = conn.createStatement();
......
......@@ -889,7 +889,7 @@ public class TestMVStore extends TestBase {
MVMap<Integer, Integer> map = s.openMap("test");
map.put(10, 100);
// ensure the file header is overwritten
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 30; i++) {
if (i > 5) {
s.setRetentionTime(0);
}
......@@ -898,7 +898,9 @@ public class TestMVStore extends TestBase {
}
s.close();
s = openStore(fileName);
assertEquals("123", s.getStoreHeader().get("test").toString());
Object test = s.getStoreHeader().get("test");
assertFalse(test == null);
assertEquals("123", test.toString());
s.close();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论