修复子事务里内存报错core问题

This commit is contained in:
wangzhenzhen 2021-08-04 21:20:30 +08:00 committed by cchen676
parent c1a69126a5
commit d470ef5f50
1 changed files with 2 additions and 0 deletions

View File

@ -256,7 +256,9 @@ static CommandId GetComboCommandId(CommandId cmin, CommandId cmax)
u_sess->utils_cxt.comboHash =
hash_create("Combo CIDs", CCID_HASH_SIZE, &hash_ctl, HASH_ELEM | HASH_FUNCTION | HASH_CONTEXT);
}
if (u_sess->utils_cxt.comboCids == NULL) {
u_sess->utils_cxt.comboCids = (ComboCidKeyData*)MemoryContextAlloc(
u_sess->top_transaction_mem_cxt, sizeof(ComboCidKeyData) * CCID_ARRAY_SIZE);
u_sess->utils_cxt.sizeComboCids = CCID_ARRAY_SIZE;