1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
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));