jam at tigger.ws
jam at tigger.ws
Mon Mar 16 12:26:33 UTC 2020
On 16 Mar 2020, at 8:00 pm, mythtv-users-request at mythtv.org wrote:
>> we have a feature that I think is silly, over the years has on many occasions caused me great grief. Not to list identical hash files more than once. (scan fails to find a file)
>> The chance of two unrelated files having the same hash is a million to one. Terry Pratchtte wrote
>> 'the chance of a million-to-one event happening is 9-in-10'
>> After yet another hour long session I decided to remove that 'feature;. Alas it is not so simple.
>> Someone put
>> // I deleted the incorrect SQL select that was supposed to get
>> // host name from ip address. Since it cannot work and has
>> // been there 6 years I assume it is not important.
>> in the code right where the hash is gathered.
>> If they (or anybody else) can say a line or two I'd appreciate it lots. I want to totally disable the hash mechanism.
>> Please no kind words saying 'you really don't want to do that'
> I believe the hash feature is useful in that if you rename a file and
> rescan, it picks up the new name and retains the metadata information
> from the old name.
> That comment you refer to looks like I put it there when I changed the
> way the backend IP addresses are stored in the database. I don't know
> what that has to do with the hash.
> I do not know anything about how the hash is calculated and used so I
> can't help there.
The comments were right next to hash functions. As I am discovering and as you've explained the hash function is not trivial and a good deal of understanding is required.
More information about the mythtv-users