]> git.treefish.org Git - phys/latlib.git/blobdiff - configcache.cpp
only storing concurrent config file HASHES instead of full names.
[phys/latlib.git] / configcache.cpp
index b375230174beb942e736dd2388affec9b0225059..1095775e8b097dd9afaf8a641d6a10f17630619c 100644 (file)
@@ -172,7 +172,7 @@ void * configcache::getHeader(const string& headerid) {
   return NULL;
 }
 
   return NULL;
 }
 
-bool configcache::readConfig(vector<string> *excludefiles)
+bool configcache::readConfig(vector<unsigned long> *excludeFileHashes)
 {   
   if(DATADIR == "" || MODE == CACHE_MODE_DISABLED) return false;
 
 {   
   if(DATADIR == "" || MODE == CACHE_MODE_DISABLED) return false;
 
@@ -190,9 +190,9 @@ bool configcache::readConfig(vector<string> *excludefiles)
 
        openFileDesc = inFiles.back();
 
 
        openFileDesc = inFiles.back();
 
-       if (excludefiles != NULL)
-         for (vector<string>::iterator exit = excludefiles->begin(); exit != excludefiles->end(); ++exit)
-           if ( *exit == inFiles.back().filename ) {
+       if (excludeFileHashes != NULL)
+         for (vector<unsigned long>::iterator exit = excludeFileHashes->begin(); exit != excludeFileHashes->end(); ++exit)
+           if ( *exit == hash(inFiles.back().filename) ) {
              excludethisfile = true;
              break;
            }
              excludethisfile = true;
              break;
            }