summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGeir Magnusson Jr <geir@pobox.com>2009-02-03 04:31:38 -0500
committerGeir Magnusson Jr <geir@pobox.com>2009-02-03 04:31:38 -0500
commit5398a8bce6517b8a7ca4ad013df3f84fd1e81082 (patch)
treede85343c22d7e9aa68ee3a156b4b245ae0ac03ed /db
parent8098043bb8975db1e41a50f9d4a51014eb2d7b87 (diff)
downloadmongo-5398a8bce6517b8a7ca4ad013df3f84fd1e81082.tar.gz
TEMP FIX - ensure that indexes.dat goes to the specified
db path. Someone please turn into usual db style
Diffstat (limited to 'db')
-rw-r--r--db/db.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/db.cpp b/db/db.cpp
index ce9f8783751..2f5a0be43a2 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -314,7 +314,11 @@ namespace mongo {
log() << "opLogging = " << opLogging << endl;
_oplog.init();
- RecCache::tempStore.init("/data/db/indexes.dat", BucketSize);
+ // HELP! FIX ME! I'm A TEMP HACK!
+ stringstream indexpath;
+ indexpath << dbpath << "/indexes.dat";
+ //RecCache::tempStore.init("/data/db/indexes.dat", BucketSize);
+ RecCache::tempStore.init(indexpath.str().c_str(), BucketSize);
#if !defined(_WIN32)
pid_t pid = 0;