Changeset 27604
- Timestamp:
- Apr 5, 2010, 1:21:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak_cleanup.pl
r27396 r27604 118 118 119 119 my $num_components = 0; 120 my @components; 121 # save the data, so we can disconnect from the database 122 # deleting can take awhile 120 123 while (my $comp = $stmt2->fetchrow_hashref()) { 124 push @components, $comp; 121 125 $num_components++; 122 126 } 127 128 $stmt2->finish(); 129 $dbh->disconnect() or warn $dbh->errstr; 130 131 my $dynamicMasks; # Use dynamic masks? 132 foreach my $comp (@components) { 123 133 my $component = $comp->{component}; 124 134 my $backup_path_base = $comp->{backup_path_base}; … … 129 139 if ($stage eq "chip") { 130 140 # Check to see if we're using dynamic masks 131 my $dynamicMasks; # Use dynamic masks? 132 { 141 if (!defined $dynamicMasks) { 133 142 # Get the PSASTRO recipe 134 143 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; … … 228 237 } 229 238 239 $dbh = DBI->connect($dsn, $dbuser, $dbpassword) or die "Cannot connect to mysql server\n"; 240 230 241 if (!$no_update and ($num_components > 0)) { 231 242 my $result = $dbh->do("DELETE FROM magicDSFile WHERE magic_ds_id = ?", undef, $magic_ds_id);
Note:
See TracChangeset
for help on using the changeset viewer.
