We're potentially handing out ids that haven't committed by increasing
max_global_id before it commits.
Signed-off-by: Sage Weil <sage@redhat.com>
{
ceph_assert(mon->is_leader());
- max_global_id += g_conf()->mon_globalid_prealloc;
dout(10) << "increasing max_global_id to " << max_global_id << dendl;
Incremental inc;
inc.inc_type = GLOBAL_ID;
- inc.max_global_id = max_global_id;
+ inc.max_global_id = max_global_id + g_conf()->mon_globalid_prealloc;
pending_auth.push_back(inc);
}