]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: set lru midpoint
authorSage Weil <sage.weil@dreamhost.com>
Sat, 5 Feb 2011 21:21:59 +0000 (13:21 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 5 Feb 2011 21:21:59 +0000 (13:21 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/client/Client.cc

index d969a5e6b7d03282d5d075ced2e50e24aff74d10..55ddd6b3f967e158918e4b8f056ca141354f312b 100644 (file)
@@ -145,6 +145,7 @@ Client::Client(Messenger *m, MonClient *mc)
   num_flushing_caps = 0;
 
   lru.lru_set_max(g_conf.client_cache_size);
+  lru.lru_set_midpoint(g_conf.client_cache_mid);
 
   // file handles
   free_fd_set.insert(10, 1<<30);