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

MVCC: if the table was locked in exclusive mode (such as SELECT ... FOR UPDATE),…

MVCC: if the table was locked in exclusive mode (such as SELECT ... FOR UPDATE), another session could query the table.
上级 0fe85fc0
...@@ -18,7 +18,9 @@ Change Log ...@@ -18,7 +18,9 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>If a FOR UPDATE query was executed twice (using a PreparedStatement), the table was not locked. <ul><li>MVCC: if the table was locked in exclusive mode (such as SELECT ... FOR UPDATE), another session
could query the table. This is now longer possible.
</li><li>If a FOR UPDATE query was executed twice (using a PreparedStatement), the table was not locked.
</li><li>Triggers: INSTEAD OF triggers are now supported. </li><li>Triggers: INSTEAD OF triggers are now supported.
Such triggers can be defined on views. Such triggers can be defined on views.
</li><li>MVCC: if the page store is disabled, rollback of multiple rows </li><li>MVCC: if the page store is disabled, rollback of multiple rows
......
...@@ -425,7 +425,9 @@ public class TableData extends Table implements RecordReader { ...@@ -425,7 +425,9 @@ public class TableData extends Table implements RecordReader {
if (exclusive) { if (exclusive) {
exclusive = false; exclusive = false;
} else { } else {
return; if (lockExclusive == null) {
return;
}
} }
} }
if (lockExclusive == session) { if (lockExclusive == session) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论