From: Samuel Just Date: Thu, 28 Apr 2016 23:08:51 +0000 (-0700) Subject: osd,mon: remove FLAG_DEBUG_FAKE_EC_POOL X-Git-Tag: v11.1.0~245^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f17e2b5358ad8c74d3461bfcc2a6bc57c5bec93;p=ceph.git osd,mon: remove FLAG_DEBUG_FAKE_EC_POOL This was used in the past as scaffolding while the ec pools were being developed. There should be no legitimate users. Signed-off-by: Samuel Just Signed-off-by: Tomy Cheru --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index da6c51a3d042..7d8d259f1a61 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -5393,15 +5393,6 @@ int OSDMonitor::prepare_command_pool_set(map &cmdmap, ss << "expecting value 'true' or '1'"; return -EINVAL; } - } else if (var == "debug_fake_ec_pool") { - if (val == "true" || (interr.empty() && n == 1)) { - p.flags |= pg_pool_t::FLAG_DEBUG_FAKE_EC_POOL; - } else if (val == "false" || (interr.empty() && n == 0)) { - p.flags &= ~pg_pool_t::FLAG_DEBUG_FAKE_EC_POOL; - } else { - ss << "expecting value 'true', 'false', '0', or '1'"; - return -EINVAL; - } } else if (var == "target_max_objects") { if (interr.length()) { ss << "error parsing int '" << val << "': " << interr; diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index 35c5fc7cc9fb..6454e69d6af2 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -1076,7 +1076,7 @@ struct pg_pool_t { enum { FLAG_HASHPSPOOL = 1<<0, // hash pg seed and pool together (instead of adding) FLAG_FULL = 1<<1, // pool is full - FLAG_DEBUG_FAKE_EC_POOL = 1<<2, // require ReplicatedPG to act like an EC pg + //UNUSED = 1<<2, FLAG_INCOMPLETE_CLONES = 1<<3, // may have incomplete clones (bc we are/were an overlay) FLAG_NODELETE = 1<<4, // pool can't be deleted FLAG_NOPGCHANGE = 1<<5, // pool's pg and pgp num can't be changed @@ -1090,7 +1090,6 @@ struct pg_pool_t { switch (f) { case FLAG_HASHPSPOOL: return "hashpspool"; case FLAG_FULL: return "full"; - case FLAG_DEBUG_FAKE_EC_POOL: return "require_local_rollback"; case FLAG_INCOMPLETE_CLONES: return "incomplete_clones"; case FLAG_NODELETE: return "nodelete"; case FLAG_NOPGCHANGE: return "nopgchange"; @@ -1120,8 +1119,6 @@ struct pg_pool_t { return FLAG_HASHPSPOOL; if (name == "full") return FLAG_FULL; - if (name == "require_local_rollback") - return FLAG_DEBUG_FAKE_EC_POOL; if (name == "incomplete_clones") return FLAG_INCOMPLETE_CLONES; if (name == "nodelete") @@ -1365,7 +1362,7 @@ public: return type == TYPE_ERASURE; } bool require_rollback() const { - return ec_pool() || flags & FLAG_DEBUG_FAKE_EC_POOL; + return ec_pool(); } /// true if incomplete clones may be present @@ -1398,7 +1395,7 @@ public: bool is_erasure() const { return get_type() == TYPE_ERASURE; } bool supports_omap() const { - return !(get_type() == TYPE_ERASURE || has_flag(FLAG_DEBUG_FAKE_EC_POOL)); + return !(get_type() == TYPE_ERASURE); } bool requires_aligned_append() const { return is_erasure(); }