From 497fd660ee546afb2083c77ddcec8e8a90d7d8a4 Mon Sep 17 00:00:00 2001 From: yupeng Date: Thu, 13 Aug 2020 15:19:23 +0800 Subject: [PATCH] fix bugs --- 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 67a30616..fb922339 100644 --- a/src/gausskernel/cbb/instruments/wdr/snapshot.cpp +++ b/src/gausskernel/cbb/instruments/wdr/snapshot.cpp @@ -155,6 +155,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; } CommitTransactionCommand(); @@ -1451,6 +1452,7 @@ void SnapshotNameSpace::SubSnapshotMain(void) TablesList tablesList; const int SLEEP_GAP_AFTER_ERROR = 1; InitSnapshot(tablesList); + 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) &&