diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-04 06:28:38 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-04 06:28:38 +0000 |
commit | 6ed606cab4e9fc4c954576ffe1d0d781d3e21929 (patch) | |
tree | 5349d6b5c284edf3cfb8290d52ab9e3cffaf4405 /source3 | |
parent | a5da647e10bdba17e6904d1538a976649d5ff513 (diff) | |
download | samba-6ed606cab4e9fc4c954576ffe1d0d781d3e21929.tar.gz samba-6ed606cab4e9fc4c954576ffe1d0d781d3e21929.tar.bz2 samba-6ed606cab4e9fc4c954576ffe1d0d781d3e21929.zip |
if the stat cache is off then don't initialise it
(This used to be commit cd5dcd9e659a7255f03eb496c0202986375e73a6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/statcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index e0ceddff1d..7b8701337f 100644 --- a/source3/smbd/statcache.c +++ b/source3/smbd/statcache.c @@ -240,6 +240,8 @@ BOOL stat_cache_lookup(connection_struct *conn, char *name, char *dirpath, BOOL reset_stat_cache( void ) { static BOOL initialised; + if (!lp_stat_cache()) return True; + if (!initialised) { initialised = True; return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp)); |