[darcs-devel] Filesystem in DB, but data in filesystem
Salvatore Insalaco
kirby81 at gmail.com
Mon Jul 30 04:23:27 PDT 2007
2007/7/30, Tommy Pettersson <ptp at lysator.liu.se>:
> In this case (too?) worse is better. The problem is not the
> pristine cache gets mangled -- it can always be rebuilt -- the
> problem is we don't detect it's mangled, and use an invalid
> cache which records invalid patches, without the user realizing
> it for maybe a long time. Data bases have checksums to detect
> this.
You are right, but I few databases use checksum on blob or text
columns outside the indexes.
Even with Oracle, once I used sed to replace a string on the db
datafile with another string of the same length (boys, don't try this
at home!) and it worked beautifully :).
However, we can do checksum if we want. Maybe a lightweight sha / md5
like checksum in file index to prevent this from happening.
Salvatore
More information about the darcs-devel
mailing list