@@ -366,20 +366,21 @@ pglogical_receiver_main(Datum main_arg)
366366res = PQexec (conn ,query -> data );
367367if (PQresultStatus (res )!= PGRES_COPY_BOTH )
368368{
369- int i ,n_deleted_slots = 0 ;
369+ // int i, n_deleted_slots = 0;
370370
371- elog (WARNING ,"Can't find slot on node%d. Shutting down receiver." ,nodeId );
372- Mtm -> nodes [nodeId - 1 ].slotDeleted = true;
373- for (i = 0 ;i < Mtm -> nAllNodes ;i ++ )
374- {
375- if (Mtm -> nodes [i ].slotDeleted )
376- n_deleted_slots ++ ;
377- }
378- if (n_deleted_slots == Mtm -> nAllNodes - 1 )
379- {
380- elog (FATAL ,"All neighbour nopes have no replication slot for us. Exiting." );
381- }
382- proc_exit (1 );
371+ elog (WARNING ,"Can't find slot on node%d. Shutting down receiver. %s" ,nodeId ,PQresultErrorMessage (res ));
372+ gotoOnError ;
373+ // Mtm->nodes[nodeId-1].slotDeleted = true;
374+ // for (i = 0; i < Mtm->nAllNodes; i++)
375+ // {
376+ // if (Mtm->nodes[i].slotDeleted)
377+ // n_deleted_slots++;
378+ // }
379+ // if (n_deleted_slots == Mtm->nAllNodes - 1)
380+ // {
381+ // elog(FATAL, "All neighbour nopes have no replication slot for us. Exiting.");
382+ // }
383+ // proc_exit(1);
383384}
384385PQclear (res );
385386resetPQExpBuffer (query );