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