From 0d29dc315bf89c1e95c2ea627f3712bc34cb341c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Feb 2020 13:32:50 -0600 Subject: [PATCH] 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 --- src/msg/async/ProtocolV2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5