Changeset 29670
- Timestamp:
- Nov 4, 2010, 1:29:16 PM (16 years ago)
- File:
-
- 1 edited
-
tags/ipp-20101029/Nebulous-Server/bin/neb-admin (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101029/Nebulous-Server/bin/neb-admin
r29482 r29670 71 71 # check to make sure that only one instance of neb-admin is running 72 72 # XXX this implies we should move pending replicate elsewhere 73 my $pidfile = '/var/tmp/neb-admin'; 73 my $pidfile; 74 if (defined $pending) { 75 $pidfile = '/var/tmp/neb-admin.replicate'; 76 } 77 elsif (defined $balance) { 78 $pidfile = '/var/tmp/neb-admin.balance'; 79 } 80 else { 81 $pidfile = '/var/tmp/neb-admin'; 82 } 74 83 # abort if an instance is already running 75 84 END { unlink_pid_file($pidfile) }; … … 391 400 my $destination_host = $obj->{destination_host}; 392 401 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; } 396 405 397 406 my %md = (
Note:
See TracChangeset
for help on using the changeset viewer.
