]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async: allow anonymous client-side connections
authorSage Weil <sage@redhat.com>
Fri, 6 Sep 2019 19:34:05 +0000 (14:34 -0500)
committerSage Weil <sage@redhat.com>
Wed, 25 Sep 2019 15:39:15 +0000 (10:39 -0500)
commit0efec7445ebfb5ada3eda897dcd004d92773961e
treebbb993a88f003f7adbd90be614b7b8adf3f94a0d
parenteec51eb756d4112720f9b6c31bfbb7b8ced620f5
msg/async: allow anonymous client-side connections

If the connection mode is lossy, allow us to open a new connection to
a target, regardless of whether other such connections are already open.
This allows for single-use connections.  If you call this multiple times,
you'll get separate, distinct connections.

We are lucky that the cleanup infrastructure for AsyncMessenger just works
without modification.  :)

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/Connection.h
src/msg/Messenger.h
src/msg/async/AsyncMessenger.cc
src/msg/async/AsyncMessenger.h
src/test/msgr/test_msgr.cc