]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/PipeConnection: make methods behave on 'anon' connection 2255/head
authorSage Weil <sage@redhat.com>
Thu, 14 Aug 2014 00:52:25 +0000 (17:52 -0700)
committerSage Weil <sage@redhat.com>
Thu, 14 Aug 2014 00:52:25 +0000 (17:52 -0700)
commit0a49db8e6fa141a36ca964e68017d02b81ae7a3c
treeb88f6d7cb4f627468ecab9dd957f34b805572614
parent0f6956b3f4e566c7f31490d3de76655cfd4cc7a9
msg/PipeConnection: make methods behave on 'anon' connection

The monitor does a create_anon_connection() to create a pseudo Connection
object for forwarded messages.  If we try to call mark_down or similar
on one of these we should silently ignore the operation, not crash.

If we try to send a message, still crash (explicitly assert); the caller
should probably know better.

Fixes: #9062
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/PipeConnection.cc