diff options
Diffstat (limited to 'src/mon')
-rw-r--r-- | src/mon/OSDMonitor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 250e90b6489..de6bfc1e065 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -3064,6 +3064,12 @@ int OSDMonitor::prepare_new_pool(string& name, uint64_t auid, int crush_ruleset, pi->auid = auid; pi->properties = properties_map; pi->stripe_width = stripe_width; + pi->cache_target_dirty_ratio_micro = + g_conf->osd_pool_default_cache_target_dirty_ratio * 1000000; + pi->cache_target_full_ratio_micro = + g_conf->osd_pool_default_cache_target_full_ratio * 1000000; + pi->cache_min_flush_age = g_conf->osd_pool_default_cache_min_flush_age; + pi->cache_min_evict_age = g_conf->osd_pool_default_cache_min_evict_age; pending_inc.new_pool_names[pool] = name; return 0; } |