/rebuild does not update HashData
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ApexDC++ |
New
|
Undecided
|
Unassigned | ||
DC++ |
Confirmed
|
Low
|
Unassigned |
Bug Description
BCDC 0.790a.
Windows 7 SP1 x64.
Summary:
If you add a new share, hash the files, and then remove it, issue a /rebuild and then re-add the same share again, DC++ will not rehash the files. Furthermore, a /rebuild between adding/removing shares does not change the size of hashdata.dat or hasindex.xml.
Repro:
* add a new share. accept the default name. DC++ hashes the files.
* open your filelist to validate share is present.
* check the size of hashdata and hashindex.
* remove the share you just added.
* issue a /refresh and /rebuild.
* note the size of hashdata and hashindex has NOT changed.
* add the same share again, accepting the default name. DC++ does NOT hash the files.
* issue a /refresh. DC++ does not re-index the files from that share.
It would be great if the expired information would be removed from both HashData.dat and HashIndex.xml. As the .xml is readable for us, I can find basicly all my share duplicated in it, since I had a drive path change at some point. The concept of /rebuild should be to have only valid information stored in these files.