Permalink
Browse files

boost 1.33 fix MINOR

  • Loading branch information...
1 parent 5738f91 commit 0ec495c2eb1d027389c23988c6880eab4fa7936f yellow committed Sep 17, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 db/extsort.cpp
View
@@ -33,7 +33,10 @@ namespace mongo {
_map(0), _mapSizeSoFar(0), _largestObject(0), _sorted(0){
stringstream rootpath;
- rootpath << dbpath << "/esort." << time(0) << "." << rand() << "/";
+ rootpath << dbpath;
+ if ( dbpath[dbpath.size()-1] != '/' )
+ rootpath << "/";
+ rootpath << "esort." << time(0) << "." << rand() << "/";
_root = rootpath.str();
create_directories( _root );

0 comments on commit 0ec495c

Please sign in to comment.