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

MVStore: when committing a session that removed LOB values, changes were flushed unnecessarily.

上级 55e77bde
......@@ -544,9 +544,11 @@ public class Session extends SessionWithState {
private void endTransaction() {
if (unlinkLobMap != null && unlinkLobMap.size() > 0) {
// need to flush the transaction log, because we can't unlink lobs
// if the commit record is not written
database.flush();
if (database.getMvStore() == null) {
// need to flush the transaction log, because we can't unlink lobs
// if the commit record is not written
database.flush();
}
for (Value v : unlinkLobMap.values()) {
v.unlink(database);
v.close();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论