]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: handle -EAGAIN in completion contexts
authorSage Weil <sage@inktank.com>
Fri, 8 Feb 2013 06:06:14 +0000 (22:06 -0800)
committerSage Weil <sage@inktank.com>
Fri, 8 Feb 2013 17:09:03 +0000 (09:09 -0800)
commit17827769f1fe6d7c4838253fcec3b3a4ad288f41
tree1fd83807d0dad1dabbe318750184a82d9fe92320
parent1b05b0edbac09d1d7cf0da2e536829df05e48573
mon: handle -EAGAIN in completion contexts

We can get ECANCELED, EAGAIN, or success out of the completion contexts,
but in the EAGAIN case (meaning there was an election) we were sending
a success to the client.  This resulted in client hangs and all-around
confusion when the monitor cluster was thrashing.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
src/mon/OSDMonitor.h