From: Sage Weil Date: Wed, 13 Mar 2013 20:13:12 +0000 (-0700) Subject: mon: increase max_global_id before we hit the wall X-Git-Tag: v0.60~82 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1779d394cddc98db10b6d9d3f175a080683f3569;p=ceph.git mon: increase max_global_id before we hit the wall Bump the max before we run out of IDs to allocate. This avoids a stall in authentication every N new clients. Signed-off-by: Sage Weil Reviewed-by: Joao Luis --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 5cf0e22e70fe..2052f11e04d0 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -343,7 +343,7 @@ uint64_t AuthMonitor::assign_global_id(MAuth *m, bool should_increase_max) bool return_next = (next_global_id <= max_global_id); // bump the max? - while (next_global_id >= max_global_id) { + while (next_global_id >= max_global_id - g_conf->mon_globalid_prealloc / 2) { increase_max_global_id(); }