]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: set default cache_target_{dirty,full}_ratios based on configurable
authorSage Weil <sage@inktank.com>
Mon, 10 Mar 2014 20:52:54 +0000 (13:52 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Mar 2014 23:38:35 +0000 (16:38 -0700)
commitfa6887b9c372a2982c6f0dc42eac36ce888ee28d
tree8b7bac101a9a72ad9a4524f1030f97591d1cc51e
parenteaf0cdc493cb4c4374f30340ddcb224ebf407012
osd: set default cache_target_{dirty,full}_ratios based on configurable

These were hard-coded in the pg_pool_t constructor, but that was a dumb
idea.

Note that decoding legacy pg_pool_t's no longer does what it used to.  I'm
pretty sure that's okay since we care less about interim releases and
because we are pulling these normally out of OSDMap, which is freshly
encoded on a regular basis (and certainly recently with real values). Also,
let's not forget that this field is meaningless on old pools anyway.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/mon/OSDMonitor.cc
src/osd/osd_types.cc
src/osd/osd_types.h