Skip to content

Commit

Permalink
Merge pull request #29618 from pdvian/wip-40943-mimic
Browse files Browse the repository at this point in the history
mimic: mon/OSDMonitor.cc: better error message about min_size

Reviewed-by: Neha Ojha <nojha@redhat.com>
  • Loading branch information
neha-ojha committed Aug 16, 2019
2 parents 8953847 + 65c314d commit d32c948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon/OSDMonitor.cc
Expand Up @@ -6753,7 +6753,7 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,

if (p.type != pg_pool_t::TYPE_ERASURE) {
if (n < 1 || n > p.size) {
ss << "pool min_size must be between 1 and " << (int)p.size;
ss << "pool min_size must be between 1 and size, which is set to " << (int)p.size;
return -EINVAL;
}
} else {
Expand All @@ -6769,7 +6769,7 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
}

if (n < k || n > p.size) {
ss << "pool min_size must be between " << k << " and " << (int)p.size;
ss << "pool min_size must be between " << k << " and size, which is set to " << (int)p.size;
return -EINVAL;
}
}
Expand Down

0 comments on commit d32c948

Please sign in to comment.