]> git.apps.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>
Tue, 12 Feb 2013 22:15:32 +0000 (14:15 -0800)
commite68fcec78286363935cf731015108b9ea36b50a6
tree10ed0c3df85225d9eb9e1f47118f69f2a4bb14cf
parent20ec490555728251444833520a40b20dc8015216
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>
(cherry picked from commit 17827769f1fe6d7c4838253fcec3b3a4ad288f41)
src/mon/OSDMonitor.h