From 3f6539ca798aee9492895e05da4d5f1f506918d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=B5=A9=E6=96=87?= Date: Tue, 9 Feb 2021 04:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEexit=5Fon=5Ferror=20pre=5Fauth=5Fdelay=20enab?= =?UTF-8?q?le=5Fwdr=5Fsnapshot=E4=B8=89=E4=B8=AA=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=90=AF=E5=8A=A8=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=BA=93=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/cbb/instruments/wdr/snapshot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gausskernel/cbb/instruments/wdr/snapshot.cpp b/src/gausskernel/cbb/instruments/wdr/snapshot.cpp index 4373e8067..abf2ada18 100644 --- a/src/gausskernel/cbb/instruments/wdr/snapshot.cpp +++ b/src/gausskernel/cbb/instruments/wdr/snapshot.cpp @@ -185,6 +185,7 @@ static void check_snapshot_thd_exit() char* redis_group = PgxcGroupGetInRedistributionGroup(); if (redis_group != NULL) { need_exit = true; + u_sess->attr.attr_common.ExitOnAnyError = true; } finish_xact_command(); @@ -1421,6 +1422,7 @@ void SnapshotNameSpace::SubSnapshotMain(void) TimestampTz next_timestamp = GetCurrentTimestamp(); const int SLEEP_GAP_AFTER_ERROR = 1; InitSnapshot(); + u_sess->attr.attr_common.ExitOnAnyError = false; while (!t_thrd.perf_snap_cxt.need_exit && (PgxcIsCentralCoordinator(g_instance.attr.attr_common.PGXCNodeName) || IS_SINGLE_NODE) &&