Changeset 2261

Show
Ignore:
Timestamp:
21/08/2008 11:15:12 (2 years ago)
Author:
chris
Message:

Report when directory modification time is later than last sync time as
a possible cause of compare failure, just as we do with files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/BackupQueries.cpp

    r2260 r2261  
    19461946                                        storePathDisplay << "' does not."); 
    19471947                                rParams.mDifferences ++; 
     1948 
     1949                                // Check the dir modification time 
     1950                                struct stat st; 
     1951                                if(::stat(localPath.c_str(), &st) == 0 && 
     1952                                        FileModificationTime(st) > 
     1953                                        rParams.mLatestFileUploadTime) 
     1954                                { 
     1955                                        rParams.mDifferencesExplainedByModTime ++; 
     1956                                        BOX_INFO("Local directory '" << 
     1957                                                localPathDisplay << "' was " 
     1958                                                "modified since the last sync, " 
     1959                                                "might be reason for " 
     1960                                                "difference"); 
     1961                                } 
    19481962                        } 
    19491963                        else