Skip to content

Commit

Permalink
Merge pull request ceph#29184 from neha-ojha/wip-1731894
Browse files Browse the repository at this point in the history
mon/OSDMonitor.cc: better error message about min_size
  • Loading branch information
jecluis authored Jul 23, 2019
2 parents 8f46c4c + ce25ac0 commit 2bb205d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7458,7 +7458,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 @@ -7474,7 +7474,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 2bb205d

Please sign in to comment.