Changeset 2784 for box/trunk/bin


Ignore:
Timestamp:
07/10/2010 14:50:42 (20 months ago)
Author:
chris
Message:

Quick fix to stop deletion of redundant locations when
DeleteRedundantLocationsAfter? is set to zero, which is supposed to mean
that it's disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r2696 r2784  
    17321732         
    17331733        // Any entries in the root directory which need deleting? 
    1734         if(dir.GetNumberOfEntries() > 0) 
     1734        if(dir.GetNumberOfEntries() > 0 && 
     1735                mDeleteRedundantLocationsAfter == 0) 
     1736        { 
     1737                BOX_NOTICE(dir.GetNumberOfEntries() << " redundant locations " 
     1738                        "in root directory found, but will not delete because " 
     1739                        "DeleteRedundantLocationsAfter = 0"); 
     1740        } 
     1741        else if(dir.GetNumberOfEntries() > 0) 
    17351742        { 
    17361743                box_time_t now = GetCurrentBoxTime(); 
Note: See TracChangeset for help on using the changeset viewer.