From 1f9aa6f48a35b3272e02423cdf514b8e75cc77cf Mon Sep 17 00:00:00 2001 From: zhaojun Date: Sat, 24 Sep 2022 00:57:38 -0700 Subject: [PATCH] fix core after enable_wdr_snapshot = on --- src/gausskernel/runtime/executor/spi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/runtime/executor/spi.cpp b/src/gausskernel/runtime/executor/spi.cpp index e58367495..bcd2bf19e 100644 --- a/src/gausskernel/runtime/executor/spi.cpp +++ b/src/gausskernel/runtime/executor/spi.cpp @@ -2737,7 +2737,7 @@ static int _SPI_execute_plan0(SPIPlanPtr plan, ParamListInfo paramLI, Snapshot s #ifndef ENABLE_MULTIPLE_NODES Port *MyPort = u_sess->proc_cxt.MyProcPort; - if (MyPort && MyPort->protocol_config->fn_set_DR_params) { + if (MyPort && MyPort->protocol_config && MyPort->protocol_config->fn_set_DR_params) { MyPort->protocol_config->fn_set_DR_params(dest, ((PlannedStmt *)stmt)->planTree->targetlist); } #endif