commit | 0fa6ebc600bc8e830551aee47a0e929e818a1868 | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@inktank.com> | Thu Dec 27 20:27:04 2012 -0600 |
committer | Alex Elder <elder@inktank.com> | Thu Dec 27 20:27:04 2012 -0600 |
tree | e9768481dfd72099c1615a357c4e2f489d596d68 | |
parent | 122070a2ffc91f87fe8e8493eb0ac61986c5557c [diff] |
libceph: fix protocol feature mismatch failure path We should not set con->state to CLOSED here; that happens in ceph_fault() in the caller, where it first asserts that the state is not yet CLOSED. Avoids a BUG when the features don't match. Since the fail_protocol() has become a trivial wrapper, replace calls to it with direct calls to reset_connection(). Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>