summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-04 22:37:33 +0000
committerJeremy Allison <jra@samba.org>2000-10-04 22:37:33 +0000
commit4248374c84a3564de3c2cc728612b73ba72e2443 (patch)
treed522a489787b66be8c8b7fb637317af2577ebcef /source3
parent23f78fd7b91878176c518471cdca84cad826cba9 (diff)
downloadsamba-4248374c84a3564de3c2cc728612b73ba72e2443.tar.gz
samba-4248374c84a3564de3c2cc728612b73ba72e2443.tar.bz2
samba-4248374c84a3564de3c2cc728612b73ba72e2443.zip
Made re-init of stat cache explicit rather than being hidden.
Jeremy. (This used to be commit b0c40236bb4381fec0e812c20e5f8c09ebf005f9)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/hash.c4
-rw-r--r--source3/smbd/statcache.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/source3/lib/hash.c b/source3/lib/hash.c
index cfb34a5488..c96315f37e 100644
--- a/source3/lib/hash.c
+++ b/source3/lib/hash.c
@@ -320,9 +320,5 @@ BOOL hash_clear(hash_table *table)
free((char *) table->buckets);
table->buckets = NULL;
- /* Reinitialize the hash table. */
- if(!hash_table_init(table, 0, table->comp_func))
- return False;
-
return True;
}
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index 7b8701337f..7b2916bb9a 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -247,5 +247,6 @@ BOOL reset_stat_cache( void )
return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp));
}
hash_clear(&stat_cache);
- return True;
+ return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp));
+
} /* reset_stat_cache */