Fix concurrent create dolphin bug.

This commit is contained in:
TotaJ
2022-07-29 17:49:31 +08:00
parent 6c8e569752
commit 1c6332d508
5 changed files with 34 additions and 18 deletions

View File

@ -854,15 +854,7 @@ static bool InitSession(knl_session_context* session)
SetProcessingMode(NormalProcessing);
#ifndef ENABLE_MULTIPLE_NODES
if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(B_FORMAT)) {
if (!u_sess->attr.attr_sql.dolphin) {
LoadDolphinIfNeeded();
} else {
InitBSqlPluginHookIfNeeded();
}
} else if (u_sess->proc_cxt.MyDatabaseId != InvalidOid && DB_IS_CMPT(A_FORMAT) && u_sess->attr.attr_sql.whale) {
InitASqlPluginHookIfNeeded();
}
LoadSqlPlugin();
#endif
init_session_share_memory();