summaryrefslogtreecommitdiff
path: root/src/mds
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-03-29 20:31:26 -0700
committerSage Weil <sage.weil@dreamhost.com>2012-03-29 20:31:26 -0700
commit409b648b00f0797bfd2c0a9dc4fea09396215764 (patch)
treeb131823c2265dcf1a73031eab317473e17dd4df4 /src/mds
parent5d981b151a14da3d4843f2eac53f58013edb2a15 (diff)
downloadceph-409b648b00f0797bfd2c0a9dc4fea09396215764.tar.gz
config: drop old debug_* items
...and replace code references with conf->subsys.should_gather(). Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/mds')
-rw-r--r--src/mds/MDCache.cc2
-rw-r--r--src/mds/Migrator.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc
index 542750d86d1..d6c1822cc31 100644
--- a/src/mds/MDCache.cc
+++ b/src/mds/MDCache.cc
@@ -9972,7 +9972,7 @@ void MDCache::show_subtrees(int dbl)
{
//dout(10) << "show_subtrees" << dendl;
- if (dbl > g_conf->debug && dbl > g_conf->debug_mds)
+ if (!g_conf->subsys.should_gather(ceph_subsys_mds, dbl))
return; // i won't print anything.
if (subtrees.empty()) {
diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc
index 7301875327b..5f727a91dff 100644
--- a/src/mds/Migrator.cc
+++ b/src/mds/Migrator.cc
@@ -496,7 +496,8 @@ void Migrator::show_exporting()
void Migrator::audit()
{
- if (g_conf->debug_mds < 5) return; // hrm.
+ if (!g_conf->subsys.should_gather(ceph_subsys_mds, 5))
+ return; // hrm.
// import_state
show_importing();