diff options
author | dgp@users.sourceforge.net <dgp> | 2012-06-21 15:44:01 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-06-21 15:44:01 (GMT) |
commit | 676265510652ebb09dbdda5e7e43f89c1a006c1a (patch) | |
tree | 5c0ee87be023b1b285dae807c7d97d9cab23c923 /generic/tclIOUtil.c | |
parent | 09e77e33c6c2cebb17342fc5d00174140f631be2 (diff) | |
download | tcl-676265510652ebb09dbdda5e7e43f89c1a006c1a.zip tcl-676265510652ebb09dbdda5e7e43f89c1a006c1a.tar.gz tcl-676265510652ebb09dbdda5e7e43f89c1a006c1a.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.c | 4 |
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 |