Skip to content

Commit

Permalink
Merge pull request #19261 from dillaman/wip-22286
Browse files Browse the repository at this point in the history
mgr: disconnect unregistered service daemon when report received

Reviewed-By: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Jan 16, 2018
2 parents 5f9911b + c97cca1 commit cff3542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mgr/DaemonServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ bool DaemonServer::handle_report(MMgrReport *m)
// themselves to be a daemon for some service.
dout(4) << "rejecting report from non-daemon client " << m->daemon_name
<< dendl;
m->get_connection()->mark_down();
m->put();
return true;
}
Expand Down

0 comments on commit cff3542

Please sign in to comment.