Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04177882 authored by Sage Weil's avatar Sage Weil
Browse files

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: default avatarSage Weil <sage@newdream.net>
parent da39822c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1355,7 +1355,9 @@ static int process_connect(struct ceph_connection *con)
		 * to WAIT.  This shouldn't happen if we are the
		 * 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:
		pr_err("connect protocol error, will retry\n");