mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
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:
parent
15f69b2236
commit
fc1a350869
2 changed files with 119 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue