diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-05 17:07:47 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-01-05 17:58:21 -0500 |
commit | 432a8396eef6888c740c5a6ad8be3eed3fba34b5 (patch) | |
tree | 371a10cc9a70cac2f6383c67607d9b6eb0af1d67 /src/mongo/util/file_allocator.cpp | |
parent | 717c7a2d79272f03f73f3214fbb61b59e22836ee (diff) | |
download | mongo-432a8396eef6888c740c5a6ad8be3eed3fba34b5.tar.gz |
remove boost filesystem includes from pch.h and be explicit anywhere we use it
Diffstat (limited to 'src/mongo/util/file_allocator.cpp')
-rw-r--r-- | src/mongo/util/file_allocator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/util/file_allocator.cpp b/src/mongo/util/file_allocator.cpp index b0572f971bd..13367d88aa4 100644 --- a/src/mongo/util/file_allocator.cpp +++ b/src/mongo/util/file_allocator.cpp @@ -34,6 +34,8 @@ using namespace mongoutils; #include "file_allocator.h" #include "paths.h" +#include <boost/filesystem/operations.hpp> + namespace mongo { boost::filesystem::path ensureParentDirCreated(const boost::filesystem::path& p){ @@ -208,9 +210,9 @@ namespace mongo { return false; } - string makeTempFileName( path root ) { + string makeTempFileName( boost::filesystem::path root ) { while( 1 ) { - path p = root / "_tmp"; + boost::filesystem::path p = root / "_tmp"; stringstream ss; ss << (unsigned) rand(); p /= ss.str(); |