]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/AsyncMessenger: make accept_conn respect register_lossy_clients 33559/head
authorSage Weil <sage@redhat.com>
Thu, 27 Feb 2020 03:32:51 +0000 (21:32 -0600)
committerSage Weil <sage@redhat.com>
Thu, 27 Feb 2020 03:32:51 +0000 (21:32 -0600)
Back in 507d213cc453ed86ab38619590f710f33245c652 we missed this condition,
which was originally introduced by c48a29b9edde3c6d3cd34252d202885e2e064fe0.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/AsyncMessenger.cc

index 4473a2497a452970cb427cc2958d47f02b5cf74b..4f1224284f28ff98f770dca83207255428c74397 100644 (file)
@@ -828,7 +828,8 @@ int AsyncMessenger::accept_conn(const AsyncConnectionRef& conn)
 {
   std::lock_guard l{lock};
   if (conn->policy.server &&
-      conn->policy.lossy) {
+      conn->policy.lossy &&
+      !conn->policy.register_lossy_clients) {
     anon_conns.insert(conn);
     conn->get_perf_counter()->inc(l_msgr_active_connections);
     return 0;