]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: use TYPE_SEC for mon_scrub_interval 38457/head
authorKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 08:02:33 +0000 (16:02 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 08:30:45 +0000 (16:30 +0800)
commitfc82b0ae8eab71ef92b1454d147e49c1d6de550b
tree69ebb4b5ce722ca4f84b52d320582db44acda03b
parentfcaf04715dec91304dc8641bf8caadd69101c0d5
mon: use TYPE_SEC for mon_scrub_interval

* common/legacy_config_opts.h: drop mon_scrub_interval from legacy
  settings. as this option is not in critical path. so we can afford
  the overhead of look its value up in the map.
* common/options.cc: change mon_scrub_interval's type from TYPE_INT
  to TYPE_SECS, so we can use human friendly representations like
  "3 days" when specifying its value
* mon/Monitor.cc: adapt to the changes above.
* doc/rados: update the doc for "mon scrub interval" accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/rados/configuration/mon-config-ref.rst
src/common/legacy_config_opts.h
src/common/options.cc
src/mon/Monitor.cc
src/mon/Monitor.h