]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph: retry new-style mon command if we get EINVAL from the old-style command
authorSage Weil <sage@inktank.com>
Fri, 9 Aug 2013 22:14:56 +0000 (15:14 -0700)
committerSage Weil <sage@inktank.com>
Fri, 9 Aug 2013 22:38:39 +0000 (15:38 -0700)
commit44b093c80844dbed6a60216eb1ff17e02c505395
tree4768ce1d982bb5f8e903ef54dae5ff73feaab590
parent7ed6de9dd7aed59f3c5dd93e012cf080bcc36d8a
ceph: retry new-style mon command if we get EINVAL from the old-style command

We can race with a mon upgrade:

- get command descriptions, get EINVAL
- mons upgrade, new quorum
- send old-style command
- get EINVAL

In this case, we should try one last time to get the command descriptions.

Fixes: #5788
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph.in