1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

if the stat cache is off then don't initialise it

This commit is contained in:
Andrew Tridgell -
parent 0beee59432
commit cd5dcd9e65

View File

@ -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));