!101 将收集快照线程中的exit_on_error变量设置为false
Merge pull request !101 from scarbor_fair/master
This commit is contained in:
@ -199,6 +199,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();
|
||||
|
||||
@ -1473,6 +1474,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) &&
|
||||
|
||||
Reference in New Issue
Block a user