修复mysql_fdw连接为空导致宕机异常

(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/4c35f74a3a2d56d53fa2325c150f63d5375a5061>
This commit is contained in:
zhubin79
2024-12-20 11:42:43 +08:00
parent 1e19e368f6
commit dcd09606fb

View File

@ -1094,7 +1094,7 @@ void hash_seq_init(HASH_SEQ_STATUS* status, HTAB* hashp)
status->hashp = hashp;
status->curBucket = 0;
status->curEntry = NULL;
if (!hashp->frozen) {
if (hashp != NULL && !hashp->frozen) {
register_seq_scan(hashp);
}
}