From 4035cab6b974613af9eb06ac1a92cc39d6ba8e06 Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Wed, 10 Jun 2015 19:01:38 -0400 Subject: SERVER-17307 Replace boost::shared_ptr and friends with std::shared_ptr --- src/mongo/db/background.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/mongo/db/background.cpp') diff --git a/src/mongo/db/background.cpp b/src/mongo/db/background.cpp index 6c859d5d700..94969dba15d 100644 --- a/src/mongo/db/background.cpp +++ b/src/mongo/db/background.cpp @@ -32,7 +32,6 @@ #include "mongo/db/background.h" -#include #include #include #include @@ -45,7 +44,7 @@ namespace mongo { - using boost::shared_ptr; + using std::shared_ptr; namespace { @@ -65,7 +64,7 @@ namespace { boost::condition_variable _noOpsInProg; }; - typedef StringMap > BgInfoMap; + typedef StringMap > BgInfoMap; typedef BgInfoMap::const_iterator BgInfoMapIterator; boost::mutex m; @@ -91,7 +90,7 @@ namespace { } void recordBeginAndInsert(BgInfoMap* bgiMap, StringData key) { - boost::shared_ptr& bgInfo = bgiMap->get(key); + std::shared_ptr& bgInfo = bgiMap->get(key); if (!bgInfo) bgInfo.reset(new BgInfo); bgInfo->recordBegin(); @@ -110,8 +109,8 @@ namespace { BgInfoMap* bgiMap, StringData key) { - boost::shared_ptr bgInfo = mapFindWithDefault( - *bgiMap, key, boost::shared_ptr()); + std::shared_ptr bgInfo = mapFindWithDefault( + *bgiMap, key, std::shared_ptr()); if (!bgInfo) return; bgInfo->awaitNoBgOps(lk); -- cgit v1.2.1