mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed bug causing re-hashing of all files in some situations, and possibly preventing file lists to transfer between friends.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8105 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
69c44ef9ef
commit
a32acc67bb
@ -56,7 +56,7 @@
|
||||
// ***********/
|
||||
|
||||
FileIndexMonitor::FileIndexMonitor(CacheStrapper *cs, std::string cachedir, const RsPeerId& pid,const std::string& config_dir)
|
||||
:CacheSource(RS_SERVICE_TYPE_FILE_INDEX, false, cs, cachedir), fiMutex("FileIndexMonitor"), fi(pid),
|
||||
:CacheSource(RS_SERVICE_TYPE_FILE_INDEX, true, cs, cachedir), fiMutex("FileIndexMonitor"), fi(pid),
|
||||
pendingDirs(false), pendingForceCacheWrite(false),
|
||||
mForceCheck(false), mInCheck(false), hashCache(config_dir+"/" + "file_cache"),useHashCache(true)
|
||||
|
||||
@ -1263,7 +1263,7 @@ time_t FileIndexMonitor::locked_saveFileIndexes(bool update_cache)
|
||||
for(std::set<RsPeerId>::const_iterator ff(it->second.begin());ff!=it->second.end();++ff)
|
||||
_cache_items_per_peer[*ff] = data ;
|
||||
|
||||
data.cid.subid = 0;
|
||||
data.cid.subid = n;
|
||||
|
||||
if(update_cache)
|
||||
updateCache(data,it->second);
|
||||
|
Loading…
Reference in New Issue
Block a user