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/dqueryparse.pl

    r19221 r24831  
    2626                       );
    2727
    28 my ($req_file, $req_id, $out_dir, $product, $mode, $dbname, $verbose, $save_temps);
     28my ($req_file, $req_id, $out_dir, $product, $mode, $dbname, $dbserver, $verbose, $save_temps);
    2929
    3030#
     
    3939        'mode=s'          =>      \$mode,
    4040        'dbname=s'        =>      \$dbname,
     41        'dbserver=s'      =>      \$dbserver,
    4142        'verbose'         =>      \$verbose,
    4243        'save-temps'      =>      \$save_temps,
     
    6970    warn("Can't find required tools.");
    7071    exit ($PS_EXIT_CONFIG_ERROR);
     72}
     73
     74if (!$dbserver) {
     75    my $ipprc = = PS::IPP::Config->new();
     76    $dbserver =  metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER');
    7177}
    7278
     
    131137    $command .= " -rownum 0";
    132138    $command .= " -dbname $dbname" if $dbname;
     139    $command .= " -dbserver $dbserver" if $dbserver;
    133140
    134141    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    153160    $command .= " -fault $result" if $result;
    154161    $command .= " -dbname $dbname" if $dbname;
     162    $command .= " -dbserver $dbserver" if $dbserver;
    155163
    156164    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.