修复mysql_fdw连接为空导致宕机异常
(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/4c35f74a3a2d56d53fa2325c150f63d5375a5061>
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user