summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2015-03-19 10:42:33 -0400
committerGeert Bosch <geert@mongodb.com>2015-03-19 17:02:27 -0400
commit96a10d146d236bb12ec787223bff494caa197f36 (patch)
tree2199dca5ff15fd04133733501e6a0bb9d59034c0 /src
parent879f306b22daec81a9a2388304539e21b3df0483 (diff)
downloadmongo-96a10d146d236bb12ec787223bff494caa197f36.tar.gz
SERVER-17433: Don't leak WiredTiger oplog background threads
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
index 88349b3dd2d..e5b8fdb95d7 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
@@ -59,7 +59,7 @@ namespace mongo {
class WiredTigerRecordStoreThread : public BackgroundJob {
public:
WiredTigerRecordStoreThread(const NamespaceString& ns)
- : _ns(ns) {
+ : BackgroundJob(true /* deleteSelf */), _ns(ns) {
_name = std::string("WiredTigerRecordStoreThread for ") + _ns.toString();
}