0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

TEMP FIX - ensure that indexes.dat goes to the specified

db path.

Someone please turn into usual db style
This commit is contained in:
Geir Magnusson Jr 2009-02-03 04:31:38 -05:00
parent 8098043bb8
commit 5398a8bce6

View File

@ -314,7 +314,11 @@ namespace mongo {
log() << "opLogging = " << opLogging << endl; log() << "opLogging = " << opLogging << endl;
_oplog.init(); _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) #if !defined(_WIN32)
pid_t pid = 0; pid_t pid = 0;