]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/ProtocolV2: fix typo in register_lossy_clients fix
authorSage Weil <sage@redhat.com>
Wed, 26 Feb 2020 19:32:50 +0000 (13:32 -0600)
committerSage Weil <sage@redhat.com>
Wed, 26 Feb 2020 19:32:50 +0000 (13:32 -0600)
In 507d213cc453ed86ab38619590f710f33245c652 this was typoed, reversing
the condition.

Fixes: https://tracker.ceph.com/issues/42328
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc

index 921c8d516623efdf10c946699c5c3507d4ac458a..d9a5a72aeccf6c3cb81c287af8e18b8acb7e3c6d 100644 (file)
@@ -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