diff options
author | Kjetil Barvik <barvik@broadpark.no> | 2009-02-09 21:54:53 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-09 20:59:26 -0800 |
commit | 7734f04873cfaddd0b148074a633f1f824fd961f (patch) | |
tree | 8db5e7fe9c66ef3cbb27470de9f300427a6bc741 /read-cache.c | |
parent | 91fcbcbdcdd845bd43104c5ac0af4c40da15223b (diff) | |
download | git-7734f04873cfaddd0b148074a633f1f824fd961f.tar.gz git-7734f04873cfaddd0b148074a633f1f824fd961f.tar.xz |
lstat_cache(): print a warning if doing ping-pong between cache types
This is a debug patch which is only to be used while the lstat_cache()
is in the test stage, and should be removed/reverted before the final
relase.
I think it should be useful to catch these warnings, as I it could be
an indication of that the cache would not be very effective if it is
doing ping-pong by switching between different cache types too many
times.
Also, if someone is experimenting with the lstat_cache(), this patch
will maybe be useful while debugging.
If someone is able to trigger the warning, then send a mail to the GIT
mailing list, containing the first 15 lines of the warning, and a
short description of the GIT commands to trigger the warnings.
I hope someone is willing to use this patch for a while, to be able to
catch possible ping-pong's.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions