Skip to content

Commit

Permalink
mon/OSDMonitor: Better prepare_command_pool_set E2BIG error message
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
  • Loading branch information
badone committed Jan 13, 2018
1 parent 79fbe60 commit d2c0fe9
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 @@ -6030,8 +6030,8 @@ int OSDMonitor::prepare_command_pool_set(map<string,cmd_vartype> &cmdmap,
if (new_pgs > g_conf->mon_osd_max_split_count * expected_osds) {
ss << "specified pg_num " << n << " is too large (creating "
<< new_pgs << " new PGs on ~" << expected_osds
<< " OSDs exceeds per-OSD max of " << g_conf->mon_osd_max_split_count
<< ')';
<< " OSDs exceeds per-OSD max with mon_osd_max_split_count of "
<< g_conf->mon_osd_max_split_count << ')';
return -E2BIG;
}
p.set_pg_num(n);
Expand Down

0 comments on commit d2c0fe9

Please sign in to comment.