From 5398a8bce6517b8a7ca4ad013df3f84fd1e81082 Mon Sep 17 00:00:00 2001 From: Geir Magnusson Jr Date: Tue, 3 Feb 2009 04:31:38 -0500 Subject: [PATCH] TEMP FIX - ensure that indexes.dat goes to the specified db path. Someone please turn into usual db style --- db/db.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;