bdr: restart bgworkers after connection aborts again.
authorAndres Freund <andres@anarazel.de>
Fri, 16 May 2014 16:26:18 +0000 (18:26 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 3 Jul 2014 15:55:38 +0000 (17:55 +0200)
The recent bgworker API fixes reinterpreted the proc_exit(0) by the
old connection abort case into a "don't restart bgworker".

contrib/bdr/bdr.c

index b3c4d70bb536a3dd72b59b193325506f2ce18338..73faf300e82e2901680dc4a0ff9c7f5ae1e6a045 100644 (file)
@@ -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)
            {