diff options
author | Sage Weil <sage@inktank.com> | 2013-02-20 10:37:01 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-02-20 10:37:01 -0800 |
commit | 04f3fe4e2c778fa8cd7d894d5b5175f1a2c8db39 (patch) | |
tree | 6cb182b145de9fc7d3efe654c7009cc337b68ee5 | |
parent | 473beb53c576efa6eb1903739df9d4fe4bbaaaa9 (diff) | |
download | ceph-04f3fe4e2c778fa8cd7d894d5b5175f1a2c8db39.tar.gz |
mon: fix new pool type
I broke this in 8cc2b0f1243b2717af1de329a7fa6a8b5350db68.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/OSDMonitor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 02abdb5325f..be9c97c5a5e 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2071,7 +2071,7 @@ int OSDMonitor::prepare_new_pool(string& name, uint64_t auid, int crush_rule, pending_inc.new_pool_max = osdmap.pool_max; int64_t pool = ++pending_inc.new_pool_max; pending_inc.new_pools[pool].type = pg_pool_t::TYPE_REP; - pending_inc.new_pools[pool].type = g_conf->osd_pool_default_flags; + pending_inc.new_pools[pool].flags = g_conf->osd_pool_default_flags; pending_inc.new_pools[pool].size = g_conf->osd_pool_default_size; pending_inc.new_pools[pool].min_size = g_conf->get_osd_pool_default_min_size(); |