Skip to content

Commit

Permalink
boost 1.33 fix MINOR
Browse files Browse the repository at this point in the history
  • Loading branch information
yellow committed Sep 17, 2009
1 parent 5738f91 commit 0ec495c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/extsort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 0ec495c

Please sign in to comment.