Thu Oct 25 13:11:49 PDT 2007
- Previous message: [Slony1-bugs] Slony 1.2.10: Deadlock on slave during execute script
- Next message: [Slony1-bugs] slonik_build_environment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
There is a flaw in the slonik_build_env.pl script. The print test should be >=1 and not > 1. It currently will not print databases where there are only single tables or sequences. So, it should be: if ( scalar(@tablesWithIndexes) >= 1 ) { print '@KEYEDTABLES=(' . "\n"; foreach my $table (sort @tablesWithIndexes) { print "\t\"$table\",\n"; } print ");\n"; } if ( scalar(@tablesWithoutIndexes) >= 1 ) { print '@SERIALTABLES=(' . "\n"; foreach my $table (sort @tablesWithoutIndexes) { print "\t\"$table\",\n"; } print ");\n"; } if ( scalar(@sequences) >= 1 ) { print '@SEQUENCES=(' . "\n"; foreach my $table (sort @sequences) { print "\t\"$table\",\n"; } print ");\n"; }
- Previous message: [Slony1-bugs] Slony 1.2.10: Deadlock on slave during execute script
- Next message: [Slony1-bugs] slonik_build_environment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-bugs mailing list