summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-06-21 15:44:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-06-21 15:44:01 (GMT)
commit0d84d7ab79f4814a74a0da796ca47d662e34d22b (patch)
tree5c0ee87be023b1b285dae807c7d97d9cab23c923 /generic/tclIOUtil.c
parent4a79be06d2cf4d564d871336e01cb7bd1f6b619c (diff)
downloadtcl-0d84d7ab79f4814a74a0da796ca47d662e34d22b.zip
tcl-0d84d7ab79f4814a74a0da796ca47d662e34d22b.tar.gz
tcl-0d84d7ab79f4814a74a0da796ca47d662e34d22b.tar.bz2
Only record the filesystemEpoch when it actually marks the validity of
something we are caching.
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 0600a6c..96f1b30 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -411,7 +411,7 @@ static FilesystemRecord nativeFilesystemRecord = {
* trigger cache cleanup in all threads.
*/
-static int theFilesystemEpoch = 0;
+static int theFilesystemEpoch = 1;
/*
* Stores the linked list of filesystems. A 1:1 copy of this list is also
@@ -672,7 +672,7 @@ int
TclFSEpochOk(
int filesystemEpoch)
{
- return (filesystemEpoch == theFilesystemEpoch);
+ return (filesystemEpoch == 0 || filesystemEpoch == theFilesystemEpoch);
}
static void