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

    r21410 r24831  
    1717my $verbose;
    1818my $dbname;
     19my $dbserver;
    1920my $limit;
    2021
     
    2223    'verbose'       =>  \$verbose,
    2324    'dbname=s'      =>  \$dbname,
     25    'dbserver=s'    =>  \$dbserver,
    2426    'limit=i'       =>  \$limit,
    2527);
     
    5961}
    6062
     63my $ipprc = PS::IPP::Config->new();
    6164my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
     65
     66if (!$dbserver) {
     67    $dbserver =  metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER');
     68}
    6269
    6370my @dataStores;
     
    6673    my $command = "$pstamptool -datastore";
    6774    $command .= " -dbname $dbname" if $dbname;
     75    $command .= " -dbserver $dbserver" if $dbserver;
    6876
    6977    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    177185                my $command = "$pstamptool -addreq -uri $req_uri -ds_id $ds_id";
    178186                $command .= " -dbname $dbname" if $dbname;
     187                $command .= " -dbserver $dbserver" if $dbserver;
    179188
    180189                my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    192201        my $command = "$pstamptool -ds_id $ds_id -moddatastore -last_fileset $lastFileset";
    193202        $command .= " -dbname $dbname" if $dbname;
     203        $command .= " -dbserver $dbserver" if $dbserver;
    194204        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    195205            run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.