]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: allow full flag to be manually cleared 3146/head
authorSage Weil <sage@redhat.com>
Thu, 11 Dec 2014 05:00:26 +0000 (21:00 -0800)
committerSage Weil <sage@redhat.com>
Thu, 11 Dec 2014 05:00:26 +0000 (21:00 -0800)
commita8f85dccbb37bca09e4cc7b4e00239a6d674259c
tree2bbb9ba13e6e8439228f6c0ecc91af7d68fc9163
parenta1eb443ee57bc71c0625f3e982751dfa344a935f
mon: allow full flag to be manually cleared

This is like a temporary measure as the mon will try to set them again,
but we have run into cases where the mon was misbehaving (failing to clear
the flag) and we wanted to do it.  Note that the mon will likely set it
again on the next tick() anyway.

If we're going to clear it, we may as well be able to set it, too (again,
even if the mon is going to clear it soon).  If nothing else this is useful
for writing tests.

Fixes: #9323
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc