!5932 修复游标表达式+并行游标的若干问题

Merge pull request !5932 from chenxiaobin/fixSmpNotReset
This commit is contained in:
opengauss_bot
2024-08-06 11:18:42 +00:00
committed by Gitee
23 changed files with 501 additions and 87 deletions

View File

@ -837,8 +837,10 @@ public:
{
if (likely(u_sess != NULL)) {
m_smpEnabled = u_sess->opt_cxt.smp_enabled;
m_underCursor = u_sess->opt_cxt.is_under_cursor;
} else {
m_smpEnabled = true;
m_underCursor = false;
}
}
@ -846,6 +848,7 @@ public:
{
if (u_sess != NULL) {
u_sess->opt_cxt.smp_enabled = m_smpEnabled;
u_sess->opt_cxt.is_under_cursor = m_underCursor;
}
}
@ -856,15 +859,24 @@ public:
}
}
void UnderCursor()
{
if (likely(u_sess != NULL)) {
u_sess->opt_cxt.is_under_cursor = true;
}
}
void ResetSmp()
{
if (u_sess != NULL) {
u_sess->opt_cxt.smp_enabled = m_smpEnabled;
u_sess->opt_cxt.is_under_cursor = m_underCursor;
}
}
private:
bool m_smpEnabled;
bool m_underCursor;
};
#ifdef USE_SPQ