]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: upgrade auth database on leader
authorSage Weil <sage@inktank.com>
Wed, 5 Jun 2013 14:55:46 +0000 (07:55 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 01:38:47 +0000 (18:38 -0700)
commitf43c974571beac0c8e54fa699bfa96a1befaf56c
treefbb7d341c447e57175ffce9b5c26c84de2fcbc13
parentafebad4f5db5176f0243194044ae20a4632608fb
mon: upgrade auth database on leader

If we are the leader, and the auth database has not yet been upgraded,
do so.  The upgrade consists of translating old-style (pre-v0.64) caps
to new-style caps (e.g., 'allow profile bootstrap-osd').  This happens
once and the conversion takes the form of a normal paxos transaction.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h