IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29482


Ignore:
Timestamp:
Oct 18, 2010, 5:43:59 PM (16 years ago)
Author:
watersc1
Message:

we can take data from hosts that do not have the allocate bit.

File:
1 edited

Legend:

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

    r29425 r29482  
    229229
    230230    # use a different exit status if we hit the limit (likely more files pending)
    231     if ($Npending == $limit) {
    232         exit 1;
    233     }
    234     exit 0;
     231    # This is a better way to do this.
     232    if ($Npending == 0) {
     233        exit 0;
     234    }
     235    else {
     236        exit 1;
     237    }
     238
     239#     if ($Npending == $limit) {
     240#         exit 1;
     241#     }
     242#     exit 0;
    235243}
    236244
     
    297305             cab_id FROM
    298306      mountedvol JOIN volume USING(vol_id)
    299       WHERE mountedvol.available = 1 AND mountedvol.allocate = 1
     307      WHERE mountedvol.available = 1
    300308      ORDER BY R DESC LIMIT $balance_N_sources                                            -- N
    301309      ) AS ranked_sources
     
    306314    AND so_id >= $so_id_start                                  -- so_id_start
    307315    AND so_id <  $so_id_end                                    -- so_id_end
    308     LIMIT $limit                                               -- limit
    309316   ) AS V -- volumes that host a copy
    310317   -- X End
     
    336343-- U End
    337344GROUP BY so_id
     345    LIMIT $limit                                               -- limit
     346
    338347"    );
    339348
     
    417426
    418427    # use a different exit status if we hit the limit (likely more files pending)
    419     if ($Npending == $limit) {
    420         exit 1;
    421     }
    422     exit 0;
     428    print STDERR "Which exit: $Npending $limit\n";
     429    # This is a better way to do this.
     430    if ($Npending == 0) {
     431        exit 0;
     432    }
     433    else {
     434        exit 1;
     435    }
     436
     437#     if ($Npending == $limit) {
     438#         exit 1;
     439#     }
     440#     exit 0;
    423441}
    424442
Note: See TracChangeset for help on using the changeset viewer.