diff options
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index 175702aebad..53b2857bd86 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -86,7 +86,7 @@ namespace mongo { << "' has to be an embedded document."); } - boost::scoped_ptr<StorageFactoriesIterator> sfi(getGlobalServiceContext()-> + std::unique_ptr<StorageFactoriesIterator> sfi(getGlobalServiceContext()-> makeStorageFactoriesIterator()); invariant(sfi); bool found = false; @@ -231,7 +231,7 @@ namespace mongo { if (!hasGlobalServiceContext()) return BSONArray(); - boost::scoped_ptr<StorageFactoriesIterator> sfi( + std::unique_ptr<StorageFactoriesIterator> sfi( getGlobalServiceContext()->makeStorageFactoriesIterator()); if (!sfi) |