From: Sage Weil Date: Wed, 26 Feb 2020 19:32:50 +0000 (-0600) Subject: msg/async/ProtocolV2: fix typo in register_lossy_clients fix X-Git-Tag: v15.1.1~218^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0d29dc315bf89c1e95c2ea627f3712bc34cb341c;p=ceph.git msg/async/ProtocolV2: fix typo in register_lossy_clients fix In 507d213cc453ed86ab38619590f710f33245c652 this was typoed, reversing the condition. Fixes: https://tracker.ceph.com/issues/42328 Signed-off-by: Sage Weil --- diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 921c8d516623e..d9a5a72aeccf6 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -2370,7 +2370,7 @@ CtPtr ProtocolV2::handle_client_ident(ceph::bufferlist &payload) if (connection->policy.server && connection->policy.lossy && - connection->policy.register_lossy_clients) { + !connection->policy.register_lossy_clients) { // incoming lossy client, no need to register this connection } else { // Looks good so far, let's check if there is already an existing connection