bug 321 - fix to the previous patch for when we have multiple real providers
authorSteve Singer <ssinger@ca.afilias.info>
Thu, 31 Oct 2013 13:05:20 +0000 (09:05 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Sat, 2 Nov 2013 18:59:12 +0000 (14:59 -0400)
If the provider list contains multiple providers that actually provide
a set (set_head != NULL) then we want to use those providers and
not skip them

src/slon/remote_worker.c

index 487c4db5b9a2b620f3d5cf57e97c6d7d18341da9..d9c340a5dec4e47f5e769dafdb1756e9987c8de1 100644 (file)
@@ -3827,7 +3827,7 @@ sync_event(SlonNode * node, SlonConn * local_conn,
                 *
                 * If the provider doesn't then we get the DDL from the event_provider.
                 */
-               if(provider->no_id != event->event_provider)
+               if(provider->no_id != event->event_provider && provider->set_head == NULL)
                {
                        slon_log(SLON_DEBUG2,
                                         "remoteWorkerThread_%d: skipping provider %d we want %d\n",