]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/Connection: protect peer_addrs with safe_item_history<>
authorSage Weil <sage@redhat.com>
Tue, 8 Jan 2019 02:38:48 +0000 (20:38 -0600)
committerSage Weil <sage@redhat.com>
Tue, 8 Jan 2019 14:46:25 +0000 (08:46 -0600)
commitf1c9bd17666cfeadb38ffe7d417039bfbae17c0d
treee3bde7f970af95fc870088e58d49efad4bf1332d
parentd49e2e9075f0e1ae1735bc00e5fbbb4fe6fadeba
msg/Connection: protect peer_addrs with safe_item_history<>

The peer_addrs can be updated during the initial connection handshake,
but we don't want users (e.g., dout()) to race with an update and
wander off into bad memory.

We use the same strategy for Messenger's my_addrs.

Fixes: http://tracker.ceph.com/issues/37807
Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSDaemon.cc
src/msg/Connection.h
src/msg/async/AsyncConnection.cc
src/msg/async/AsyncMessenger.cc
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc
src/msg/simple/PipeConnection.h