The attached patch attempts to improve the docs of slonik_merge_set. I wanted
to make it crystal clear that the two sets involved in the merge are not
treated equally. Notably, one of the sets is completely eliminated.
Mark
--- /home/mark/Desktop/slonik_merge_sets.pl.orig 2009-03-26 10:08:29.000000000 -0400
+++ /home/mark/Desktop/slonik_merge_sets.pl 2009-03-26 10:10:32.000000000 -0400
@@ -14,9 +14,10 @@
"help" => \$SHOW_USAGE);
my $USAGE =
-"Usage: merge_sets [--config file] node# set# set#
+"Usage: merge_sets [--config file] node# targetset# srcset#
Merges the contents of the second set into the first one.
+ When completed, the second set no longer exists.
";
@@ -59,9 +60,9 @@
$slonik .= " try {\n";
$slonik .= " merge set (id = $set1, add id = $set2, origin = $node);\n";
$slonik .= " } on error {\n";
-$slonik .= " echo 'Failure to merge sets $set1 and $set2 with origin $node';\n";
+$slonik .= " echo 'Failure to merge sets $set2 into $set1 with origin $node';\n";
$slonik .= " exit 1;\n";
$slonik .= " }\n";
-$slonik .= " echo 'Replication set $set2 merged in with $set1 on origin $node';\n";
+$slonik .= " echo 'Replication set $set2 merged into $set1 on origin $node. Set $set2 no longer exists.';\n";
run_slonik_script($slonik, 'MERGE SET');
_______________________________________________
Slony1-general mailing list
[email protected]
http://lists.slony.info/mailman/listinfo/slony1-general