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

Formatting.

上级 aab00fa3
...@@ -250,7 +250,7 @@ public class MVTableEngine implements TableEngine { ...@@ -250,7 +250,7 @@ public class MVTableEngine implements TableEngine {
* fill rate, and move chunks next to each other. This will typically * fill rate, and move chunks next to each other. This will typically
* shrink the database file. Changes are flushed to the file, and old * shrink the database file. Changes are flushed to the file, and old
* chunks are overwritten. * chunks are overwritten.
* *
* @param maxCompactTime the maximum time in milliseconds to compact * @param maxCompactTime the maximum time in milliseconds to compact
*/ */
public void compactFile(long maxCompactTime) { public void compactFile(long maxCompactTime) {
...@@ -265,12 +265,12 @@ public class MVTableEngine implements TableEngine { ...@@ -265,12 +265,12 @@ public class MVTableEngine implements TableEngine {
} }
store.compactMoveChunks(); store.compactMoveChunks();
} }
/** /**
* Close the store. Pending changes are persisted. Chunks with a low * Close the store. Pending changes are persisted. Chunks with a low
* fill rate are compacted, but old chunks are kept for some time, so * fill rate are compacted, but old chunks are kept for some time, so
* most likely the database file will not shrink. * most likely the database file will not shrink.
* *
* @param maxCompactTime the maximum time in milliseconds to compact * @param maxCompactTime the maximum time in milliseconds to compact
*/ */
public void close(long maxCompactTime) { public void close(long maxCompactTime) {
......
...@@ -357,7 +357,7 @@ public class TransactionStore { ...@@ -357,7 +357,7 @@ public class TransactionStore {
store.commit(); store.commit();
} }
// to avoid having to store the transaction log, // to avoid having to store the transaction log,
// if there is no open transaction, // if there is no open transaction,
// and if there have been many changes, store them now // and if there have been many changes, store them now
if (undoLog.isEmpty()) { if (undoLog.isEmpty()) {
int unsaved = store.getUnsavedPageCount(); int unsaved = store.getUnsavedPageCount();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论