summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-02-24 14:13:25 -0500
committerEric Milkie <milkie@10gen.com>2016-02-24 16:02:10 -0500
commit27bd602a6e6ba29978a6468442a196731ecf14a0 (patch)
tree153d019e903c398085672a8e6b82671927520020
parent0e21496d0d4544c2f70980cf4aac326454129659 (diff)
downloadmongo-27bd602a6e6ba29978a6468442a196731ecf14a0.tar.gz
SERVER-22838 avoid boost TLS assertion at process shutdown
-rw-r--r--src/third_party/boost-1.56.0/libs/thread/src/win32/thread.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/boost-1.56.0/libs/thread/src/win32/thread.cpp b/src/third_party/boost-1.56.0/libs/thread/src/win32/thread.cpp
index 54ebbf3e091..eb117d529ee 100644
--- a/src/third_party/boost-1.56.0/libs/thread/src/win32/thread.cpp
+++ b/src/third_party/boost-1.56.0/libs/thread/src/win32/thread.cpp
@@ -92,7 +92,10 @@ namespace boost
}
else
{
- BOOST_VERIFY(false);
+ // If we attempted to set the data to a null pointer, don't flag an error.
+ // This happens at shutdown, where boost has a race between thread and
+ // process exit handlers.
+ BOOST_VERIFY(!new_data);
//boost::throw_exception(thread_resource_error());
}
}