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

MVTableEngine

上级 66dcf5a0
......@@ -1381,6 +1381,9 @@ public class Session extends SessionWithState {
*/
public Transaction getTransaction() {
if (transaction == null) {
if (database.getMvStore().getStore().isClosed()) {
throw DbException.get(ErrorCode.OBJECT_CLOSED);
}
transaction = database.getMvStore().getTransactionStore().begin();
startStatement = -1;
}
......
......@@ -49,6 +49,8 @@ MVTableEngine:
- use StreamStore
- when the MVStore was enabled before, use it again
(probably by checking existence of the mvstore file)
- not use the .h2.db file
- not use the .lock.db file
TransactionStore:
......@@ -566,7 +568,7 @@ public class MVStore {
try {
check = (int) Long.parseLong(f, 16);
} catch (NumberFormatException e) {
check = -1;
continue;
}
s = s.substring(0, s.lastIndexOf("fletcher") - 1);
byte[] bytes = s.getBytes(DataUtils.UTF8);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论