Properly fold in remote NOTIFY calls at the MCP level.
authorGreg Sabino Mullane <greg@endpoint.com>
Sun, 23 Dec 2012 05:06:10 +0000 (00:06 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Sun, 23 Dec 2012 05:06:10 +0000 (00:06 -0500)
Bucardo.pm

index ac95899357b14c057c1316edc1bde53ed375b362..9564bbd8b0387361f18a0a28e1cbe24f40e6ac66 100644 (file)
@@ -860,6 +860,11 @@ sub mcp_main {
                 if (! exists $notice->{$name}) {
                     $notice->{$name} = $nlist->{$name};
                 }
+                else {
+                    for my $pid (keys %{ $nlist->{$name}{pid} }) {
+                        $notice->{$name}{pid}{$pid}++;
+                    }
+                }
             }
         }