summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2018-01-03 10:41:14 -0500
committerJason Carey <jcarey@argv.me>2018-02-01 11:36:21 -0500
commit2f1773ed1edb357ff77144481803a9e6df9481de (patch)
treec8aad1a57e5db33e19808d54c8855ef33e2acbb9 /src/mongo/client/connpool.cpp
parent48a34a495386b7cbe18419313768929d12028125 (diff)
downloadmongo-2f1773ed1edb357ff77144481803a9e6df9481de.tar.gz
SERVER-28822 asan fixes
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r--src/mongo/client/connpool.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp
index e4938ebcc0a..8100521c05d 100644
--- a/src/mongo/client/connpool.cpp
+++ b/src/mongo/client/connpool.cpp
@@ -1,5 +1,5 @@
/* connpool.cpp
-*/
+ */
/* Copyright 2009 10gen Inc.
*
@@ -48,6 +48,14 @@
#include "mongo/util/log.h"
#include "mongo/util/net/socket_exception.h"
+#if !defined(__has_feature)
+#define __has_feature(x) 0
+#endif
+
+#if __has_feature(address_sanitizer)
+#include <sanitizer/lsan_interface.h>
+#endif
+
namespace mongo {
namespace {
@@ -431,6 +439,10 @@ DBConnectionPool::~DBConnectionPool() {
PoolForHost& p = i->second;
p._parentDestroyed = true;
}
+
+#if __has_feature(address_sanitizer)
+ __lsan_ignore_object(_hooks);
+#endif
}
void DBConnectionPool::flush() {