提交 4ad8553c authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove MVStore-only trick from ResultTempTable.next()

上级 81c04d56
...@@ -278,20 +278,8 @@ public class ResultTempTable implements ResultExternal { ...@@ -278,20 +278,8 @@ public class ResultTempTable implements ResultExternal {
} else { } else {
idx = table.getScanIndex(session); idx = table.getScanIndex(session);
} }
if (session.getDatabase().getMvStore() != null) {
// sometimes the transaction is already committed,
// in which case we can't use the session
if (idx.getRowCount(session) == 0 && rowCount > 0) {
// this means querying is not transactional
resultCursor = idx.find((Session) null, null, null);
} else {
// the transaction is still open
resultCursor = idx.find(session, null, null); resultCursor = idx.find(session, null, null);
} }
} else {
resultCursor = idx.find(session, null, null);
}
}
if (!resultCursor.next()) { if (!resultCursor.next()) {
return null; return null;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论