Made re-init of stat cache explicit rather than being hidden.
authorJeremy Allison <jra@samba.org>
Wed, 4 Oct 2000 22:37:33 +0000 (22:37 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 4 Oct 2000 22:37:33 +0000 (22:37 +0000)
Jeremy.

source/lib/hash.c
source/smbd/statcache.c

index cfb34a548815caff04d7f568421e4e3ab994402c..c96315f37e0ec7182b60926075019673c4e47dd3 100644 (file)
@@ -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;
 }
index 7b8701337ff61b7d4e99ef52cd3407ddb7252ecf..7b2916bb9a2c4c85df4da86cd9f0cf8550266512 100644 (file)
@@ -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  */