added automated import of old hash cache in order to avoid re-hashing everything when switching to the new system

This commit is contained in:
csoler 2016-09-26 21:12:13 +02:00
parent 15f69b2236
commit fc1a350869
2 changed files with 119 additions and 4 deletions

View file

@ -100,7 +100,8 @@ private:
// loading/saving the entire hash database to a file
void locked_save() ;
void locked_load() ;
bool locked_load() ;
bool try_load_import_old_hash_cache();
bool readHashStorageInfo(const unsigned char *data,uint32_t total_size,uint32_t& offset,HashStorageInfo& info) const;
bool writeHashStorageInfo(unsigned char *& data,uint32_t& total_size,uint32_t& offset,const HashStorageInfo& info) const;