IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29669


Ignore:
Timestamp:
Nov 4, 2010, 1:28:36 PM (16 years ago)
Author:
watersc1
Message:

Fix bug where bad entries weren't decrementing the row count, causing the program to get stuck.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-admin

    r29482 r29669  
    7171# check to make sure that only one instance of neb-admin is running
    7272# XXX this implies we should move pending replicate elsewhere
    73 my $pidfile = '/var/tmp/neb-admin';
     73my $pidfile;
     74if (defined $pending) {
     75    $pidfile = '/var/tmp/neb-admin.replicate';
     76}
     77elsif (defined $balance) {
     78    $pidfile = '/var/tmp/neb-admin.balance';
     79}
     80else {
     81    $pidfile = '/var/tmp/neb-admin';
     82}
    7483# abort if an instance is already running
    7584END { unlink_pid_file($pidfile) };
     
    391400        my $destination_host   = $obj->{destination_host};
    392401       
    393         unless ($here == $there) { next; }
    394         unless ($ins_id == $max_ins_id) { next; }
    395         unless ($source_cab_id != $destination_cab_id) { next; }
     402        unless ($here == $there) { $Npending-- ; next; }
     403        unless ($ins_id == $max_ins_id) { $Npending-- ; next; }
     404        unless ($source_cab_id != $destination_cab_id) { $Npending-- ;  next; }
    396405       
    397406        my %md = (
Note: See TracChangeset for help on using the changeset viewer.