From: Andres Freund Date: Fri, 16 May 2014 16:26:18 +0000 (+0200) Subject: bdr: restart bgworkers after connection aborts again. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d20ba7e0bc7be0fa179926a2284cdd927646ab8b;p=users%2Fandresfreund%2Fpostgres.git bdr: restart bgworkers after connection aborts again. The recent bgworker API fixes reinterpreted the proc_exit(0) by the old connection abort case into a "don't restart bgworker". --- diff --git a/contrib/bdr/bdr.c b/contrib/bdr/bdr.c index b3c4d70bb5..73faf300e8 100644 --- a/contrib/bdr/bdr.c +++ b/contrib/bdr/bdr.c @@ -679,8 +679,7 @@ bdr_apply_main(Datum main_arg) if (r == -1) { - elog(DEBUG1, "data stream ended"); - return; + elog(ERROR, "data stream ended"); } else if (r == -2) {