Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
return -EINVAL;
}
} else if (var == "dedup_tier") {
+ if (interr.empty()) {
+ ss << "expecting value 'pool name'";
+ return -EINVAL;
+ }
// Current base tier in dedup does not support ec pool
if (p.is_erasure()) {
ss << "pool '" << poolstr
const pg_pool_t *tp = osdmap.get_pg_pool(lowtierpool_id);
ceph_assert(tp);
n = lowtierpool_id;
+ // The original input is string (pool name), but we convert it to int64_t.
+ // So, clear interr
interr.clear();
} else if (var == "dedup_chunk_algorithm") {
if (!unset) {