提交 04177882 编写于 作者: S Sage Weil

libceph: fix TAG_WAIT case

If we get a WAIT as a client something went wrong; error out.  And don't
fall through to an unrelated case.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 da39822c
...@@ -1355,7 +1355,9 @@ static int process_connect(struct ceph_connection *con) ...@@ -1355,7 +1355,9 @@ static int process_connect(struct ceph_connection *con)
* to WAIT. This shouldn't happen if we are the * to WAIT. This shouldn't happen if we are the
* client. * client.
*/ */
pr_err("process_connect peer connecting WAIT\n"); pr_err("process_connect got WAIT as client\n");
con->error_msg = "protocol error, got WAIT as client";
return -1;
default: default:
pr_err("connect protocol error, will retry\n"); pr_err("connect protocol error, will retry\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册