Mon Jan 10 16:46:47 PST 2005
- Previous message: [Slony1-commit] By cbbrowne: Added Perl/Bash scripts for testing how Slony-I replication
- Next message: [Slony1-commit] By cbbrowne: Add usage output Potentially use environment to determine
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Use $SEQUENCE_ID rather than $SEQID, which will become an environment parameter.
Change suggested by Steve Simms
Modified Files:
--------------
slony1-engine/tools/altperl:
create_set.pl (r1.8 -> r1.9)
-------------- next part --------------
Index: create_set.pl
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/tools/altperl/create_set.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -Ltools/altperl/create_set.pl -Ltools/altperl/create_set.pl -u -w -r1.8 -r1.9
--- tools/altperl/create_set.pl
+++ tools/altperl/create_set.pl
@@ -77,14 +77,16 @@
echo 'Adding sequences to the subscription set';
";
-$SEQID=1;
+if ($SEQUENCE_ID < 1) {
+ $SEQUENCE_ID = 1;
+}
foreach my $seq (@SEQUENCES) {
$seq = ensure_namespace($seq);
print OUTFILE "
- set add sequence (set id = $set, origin = $MASTERNODE, id = $SEQID, full qualified name = '$seq', comment = 'Sequence $seq');
+ set add sequence (set id = $set, origin = $MASTERNODE, id = $SEQUENCE_ID, full qualified name = '$seq', comment = 'Sequence $seq');
echo 'Add sequence $seq';
";
- $SEQID++;
+ $SEQUENCE_ID++;
}
print OUTFILE "
echo 'All tables added';
- Previous message: [Slony1-commit] By cbbrowne: Added Perl/Bash scripts for testing how Slony-I replication
- Next message: [Slony1-commit] By cbbrowne: Add usage output Potentially use environment to determine
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list