summaryrefslogtreecommitdiff
path: root/db/extsort.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-05 10:56:42 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-05 10:56:42 -0400
commitd006977e872c448b17ce6d5cdc1e945cf79159c3 (patch)
treecd50e0eec4bd347ef857083d29e8dd29ecb3ae64 /db/extsort.cpp
parente2fcb26d685f82f9405f954e11ad0d49994f4fbd (diff)
downloadmongo-d006977e872c448b17ce6d5cdc1e945cf79159c3.tar.gz
put esort files in _tmp and remove on startup
Diffstat (limited to 'db/extsort.cpp')
-rw-r--r--db/extsort.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/extsort.cpp b/db/extsort.cpp
index d4522745258..3601b52d4d0 100644
--- a/db/extsort.cpp
+++ b/db/extsort.cpp
@@ -37,9 +37,11 @@ namespace mongo {
rootpath << dbpath;
if ( dbpath[dbpath.size()-1] != '/' )
rootpath << "/";
- rootpath << "esort." << time(0) << "." << rand() << "/";
+ rootpath << "_tmp/esort." << time(0) << "." << rand() << "/";
_root = rootpath.str();
+ log(1) << "external sort root: " << _root.string() << endl;
+
create_directories( _root );
_compares = 0;
}