Be looser in what we allow conflict to be
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 4 Jul 2014 17:41:49 +0000 (13:41 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 4 Jul 2014 17:41:49 +0000 (13:41 -0400)
bucardo

diff --git a/bucardo b/bucardo
index e4bc799fcc48fd8360399e58aa538c76e1014150..facfabc23b03650932e3411ec8d44984e2e3abbf 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -4553,14 +4553,10 @@ sub update_sync {
 
                 ## Allow some alternative names
                 $value = 'bucardo_latest' if $value eq 'default' or $value eq 'latest';
+                $value = 'bucardo_latest_all_tables' if $value eq 'latest_all';
 
-                ## Standard ones are okay
-                if ($value eq 'bucardo_latest'
-                        or $value eq 'bucardo_abort'
-                            or $value eq 'bucardo_custom') {
-                }
-                else {
-                    ## This must be a list of the databases in this sync
+                ## If the name does not start with bucardo, it must be a list of databases
+                if ($value !~ /^bucardo_/) {
                     my $dbs = $SYNC->{$name}{dblist};
                     for my $dbname (split /\s+/ => $value) {
                         if (! exists $dbs->{$dbname}) {