#
# READS:
#
-# Nontransactional reads are also permitted
-# Transactional reads must take out locks as if they were modifying
+# Nontransactional and transactional reads are also permitted
+# and do not need to take out any locks. (We support only databases
+# using multi-version concurrency control, which includes PostgreSQL
+# and SQLite.)
augmentconfigdefaults(
ControlDaemonHost => 'control-daemons',
return 1;
}
-db_retry($dbh_tests,[qw(flights)], sub {
+db_retry($dbh_tests,[], sub {
@flights = ();
for (;;) {
iteration_continue()
sub allocations ($$) {
my ($init, $each) = @_;
- db_retry($dbh_tests, \@all_lock_tables, sub {
+
+ db_retry($dbh_tests, [], sub {
$init->();
our $resources_q ||= $dbh_tests->prepare(<<END);
rename "$htmlout.new", $htmlout or die $!;
}
-db_begin_work($dbh_tests, [qw(flights)]);
+db_begin_work($dbh_tests, []);
findspecflight();
my $fi= examineflight($specflight);
my @fails= justifyfailures($fi);
rename "$html_file.new", "$html_file" or die "$html_file $!";
}
-db_retry($dbh_tests, [qw(flights resources)], sub {
+db_retry($dbh_tests, [], sub {
computeflightsrange();
});
foreach my $host (@ARGV) {
if ($host =~ m/^flight:/) {
my $flight=$'; #';
- db_retry($dbh_tests, [qw(flights)], sub {
+ db_retry($dbh_tests, [], sub {
our $hostsinflightq //= db_prepare(<<END);
SELECT DISTINCT val
FROM runvars
exit 0 unless %hosts;
-db_retry($dbh_tests, [qw(flights)], sub {
+db_retry($dbh_tests, [], sub {
mainquery();
});
foreach my $host (sort keys %hosts) {
- db_retry($dbh_tests, [qw(flights)], sub {
+ db_retry($dbh_tests, [], sub {
reporthost $host;
});
}
processjobbranch($j,$_) foreach @branches;
}
-db_begin_work($dbh_tests, [qw(flights)]);
+db_begin_work($dbh_tests, []);
foreach my $j (@jobs) { processjob($j); }