diff options
Diffstat (limited to 'source3/smbd/statcache.c')
-rw-r--r-- | source3/smbd/statcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index dfc1a6ed95..03adf32e09 100644 --- a/source3/smbd/statcache.c +++ b/source3/smbd/statcache.c @@ -286,7 +286,7 @@ BOOL stat_cache_lookup(connection_struct *conn, pstring name, pstring dirpath, JRA. Use a djb-algorithm hash for speed. ***************************************************************/ -static u32 string_hash(TDB_DATA *key) +u32 fast_string_hash(TDB_DATA *key) { u32 n = 0; const char *p; @@ -311,7 +311,7 @@ BOOL reset_stat_cache( void ) /* Create the in-memory tdb using our custom hash function. */ tdb_stat_cache = tdb_open_ex("statcache", 0, TDB_INTERNAL, - (O_RDWR|O_CREAT), 0644, NULL, string_hash); + (O_RDWR|O_CREAT), 0644, NULL, fast_string_hash); if (!tdb_stat_cache) return False; |