diff options
author | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2011-09-12 11:32:03 -0700 |
---|---|---|
committer | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2011-09-12 11:38:10 -0700 |
commit | e84996de696f911f68d49179afaf9e2b93842d50 (patch) | |
tree | ffe3f09d855a099283041ac63205b917367d3218 /src/mon/MDSMonitor.cc | |
parent | 923c60c58811722ba936721d6a67a0e09ffcf0ce (diff) | |
download | ceph-e84996de696f911f68d49179afaf9e2b93842d50.tar.gz |
Remove global ctors/dtors for CompatSet
Instead of having global CompatSet objects, just have functions that can
return appropriate CompatSet objects. This avoids global constructor
and destructor ordering issues.
Fixes bug #1512
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'src/mon/MDSMonitor.cc')
-rw-r--r-- | src/mon/MDSMonitor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 09e07b96f24..2817fea026b 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -62,7 +62,7 @@ void MDSMonitor::create_new_fs(MDSMap &m, int metadata_pool, int data_pool) m.data_pg_pools.push_back(data_pool); m.metadata_pg_pool = metadata_pool; m.cas_pg_pool = -1; - m.compat = mdsmap_compat; + m.compat = get_mdsmap_compat_set(); print_map(m); } |