[BUG] stat cache doesn't handle old pathnames with new ids properly

Aaron Bentley aaron.bentley at utoronto.ca
Mon Jul 4 13:41:42 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> On  3 Jul 2005, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:

>>Is there any particular reason why the statcache is indexed by id,
>>rather than pathname?

> I don't think there's any good reason.

Oh, and a more wacky approach would be to index by stat data, instead of
id or pathname.  That would mean you could rename or move the file
without having to SHA-1 it again.  Probably not worth the loss of
clarity over indexing by pathname, but a fun idea.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCyS6G0F+nu1YWqI0RAij0AJ4jCLSU1k798ZxWYlLiEwxvCqNZ3gCggSjN
H0uVOlWnEkCHSSd4bbgFWGI=
=Btoj
-----END PGP SIGNATURE-----




More information about the bazaar mailing list