IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2009, 5:14:07 PM (17 years ago)
Author:
bills
Message:

updates to the postage stamp server to allow the postage stamp server's
database to be located on a different mysql server than the ipp.
Also some updates towards compatability with the current ipp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/dquery_finish.pl

    r19221 r24831  
    2020use PS::IPP::Config qw( :standard );
    2121
    22 my ( $req_id, $req_name, $req_file, $product, $dbname, $verbose, $save_temps );
     22my ( $req_id, $req_name, $req_file, $product, $dbname, $dbserver, $verbose, $save_temps );
    2323
    2424GetOptions(
     
    2828           'product=s'  => \$product,
    2929           'dbname=s'   => \$dbname,
     30           'dbserver=s' => \$dbserver,
    3031           'verbose'    => \$verbose,
    3132           'save-temps' => \$save_temps,
     
    5657my $outputDataStoreRoot = metadataLookupStr($ipprc->{_siteConfig}, 'DATA_STORE_ROOT');
    5758exit ($PS_EXIT_CONFIG_ERROR) unless defined $outputDataStoreRoot; # lookup failure outputs a message
     59
     60if (!$dbserver) {
     61    $dbserver = metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER');
     62}
    5863
    5964if ($product eq "NULL") {
     
    8994    my $command = "$pstamptool -listjob -req_id $req_id";
    9095    $command .= " -dbname $dbname" if $dbname;
     96    $command .= " -dbserver $dbserver" if $dbserver;
    9197    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9298        run(command => $command, verbose => $verbose);
     
    149155    $command   .= " -fault $fault" if $fault;
    150156    $command   .= " -dbname $dbname" if $dbname;
     157    $command   .= " -dbserver $dbserver" if $dbserver;
    151158    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    152159        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.