Changeset 2560


Ignore:
Timestamp:
17/09/2009 23:23:39 (2 years ago)
Author:
chris
Message:

Remove check for soft limit being less than 97% of the hard limit, as
some users want to set them equal to ensure that no files are ever
deleted by housekeeping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbstoreaccounts/bbstoreaccounts.cpp

    r2493 r2560  
    4646void CheckSoftHardLimits(int64_t SoftLimit, int64_t HardLimit) 
    4747{ 
    48         if(SoftLimit >= HardLimit) 
     48        if(SoftLimit > HardLimit) 
    4949        { 
    5050                BOX_FATAL("Soft limit must be less than the hard limit."); 
     
    5353        if(SoftLimit > ((HardLimit * MAX_SOFT_LIMIT_SIZE) / 100)) 
    5454        { 
    55                 BOX_FATAL("Soft limit must be no more than " <<  
    56                         MAX_SOFT_LIMIT_SIZE << "% of the hard limit."); 
    57                 exit(1); 
     55                BOX_WARNING("We recommend setting the soft limit below " << 
     56                        MAX_SOFT_LIMIT_SIZE << "% of the hard limit, or " << 
     57                        HumanReadableSize((HardLimit * MAX_SOFT_LIMIT_SIZE) 
     58                                / 100) << " in this case."); 
    5859        } 
    5960} 
Note: See TracChangeset for help on using the changeset viewer.