This triggers with the new larger mon_globalid_prealloc value. It didn't
trigger on the existing cluster I tested on because it already had a very
large max.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
bbaf582e5bb54ae35327ffd234e4ccf0f07317db)
// bump the max?
while (mon->is_leader() &&
- next_global_id >= max_global_id - g_conf->mon_globalid_prealloc / 2) {
+ (max_global_id < g_conf->mon_globalid_prealloc ||
+ next_global_id >= max_global_id - g_conf->mon_globalid_prealloc / 2)) {
increase_max_global_id();
}