Add check for connection failures during multishard update (#1765)

pull/1768/head
Murat Tuncer 2017-11-07 12:33:25 +02:00 committed by GitHub
parent 731b1254f9
commit 4e3d633ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1141,8 +1141,11 @@ ExecuteModifyTasks(List *taskList, bool expectResults, ParamListInfo paramListIn
&currentAffectedTupleCount);
}
/* should have rolled back on error */
Assert(queryOK);
/* We error out if the worker fails to return a result for the query. */
if (!queryOK)
{
ReportConnectionError(connection, ERROR);
}
if (placementIndex == 0)
{