diff options
author | Jason Carey <jcarey@argv.me> | 2019-02-01 15:55:25 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2019-02-01 17:49:40 -0500 |
commit | 2d242bb2fd988496cbbe01ad17304778b441319a (patch) | |
tree | 76b4d68099090ade58dc2b5d080f1242eacfeea7 /src | |
parent | 66430d75e33827da60195deb317058c71f75e03f (diff) | |
download | mongo-2d242bb2fd988496cbbe01ad17304778b441319a.tar.gz |
SERVER-39348 Release sessions in TLASIO unittest
The TimeoutSwitchModesSEP notify's completion before releasing the
session, meaning we can race on deleting the TL and the session.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/transport/transport_layer_asio_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/transport_layer_asio_test.cpp b/src/mongo/transport/transport_layer_asio_test.cpp index 0dab75aadd5..f6aeb2ff486 100644 --- a/src/mongo/transport/transport_layer_asio_test.cpp +++ b/src/mongo/transport/transport_layer_asio_test.cpp @@ -338,9 +338,9 @@ public: session->setTimeout(boost::none); ASSERT_OK(sourceMessage()); + session.reset(); notifyComplete(); log() << "ending test"; - session.reset(); }); worker.detach(); } |