]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: simplify assign_global_id()
authorSage Weil <sage@inktank.com>
Wed, 13 Mar 2013 20:11:42 +0000 (13:11 -0700)
committerSage Weil <sage@inktank.com>
Wed, 13 Mar 2013 22:38:48 +0000 (15:38 -0700)
commit4637752db6f8520abba160b4817323379c4a7fe0
tree14261a31683395db0fbfa37609e20513dcbb52c1
parent436e5be950154fdbbd9e1cfaf4267be6159249d5
mon: simplify assign_global_id()

Simplify the logic a bit so it is easier to follow.

Small behavior change: we will successfully allocate and return a gid that
== the max when we can't bump it.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/AuthMonitor.cc