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

MVStore / transaction store: opening a store in read-only mode does no longer loop

上级 0d27b71d
......@@ -39,6 +39,8 @@ Change Log
</li>
<li>Garbage collection of unused chunks should be faster still.
</li>
<li>MVStore / transaction store: opening a store in read-only mode does no longer loop.
</li>
</ul>
<h2>Version 1.4.192 Beta (2016-05-26)</h2>
......
......@@ -1246,6 +1246,10 @@ public class TransactionStore {
Object[] d;
d = transaction.store.undoLog.get(id);
if (d == null) {
if (transaction.store.store.isReadOnly()) {
// uncommitted transaction for a read-only store
return null;
}
// this entry should be committed or rolled back
// in the meantime (the transaction might still be open)
// or it might be changed again in a different
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论