]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6249: Get the comparison the right way around...
authorJeremy Allison <jra@samba.org>
Fri, 8 Apr 2005 17:04:59 +0000 (17:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:32 +0000 (10:56 -0500)
Jeremy.

source/smbd/statcache.c

index 99f209006b35193bb0c6ae912006e67e70a41731..8e22d9687b8d2785810feb9d7fd02bcfbf2ccc3c 100644 (file)
@@ -52,7 +52,7 @@ void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat
        if (!lp_stat_cache())
                return;
 
-       if (sc_size && (sc_size*1024 > tdb_stat_cache->map_size)) {
+       if (sc_size && (tdb_stat_cache->map_size > sc_size*1024)) {
                reset_stat_cache();
        }