diff --git a/db/db.cpp b/db/db.cpp index c132ef938f6..3977281a4ff 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -315,11 +315,13 @@ namespace mongo { log() << "opLogging = " << opLogging << endl; _oplog.init(); +#if defined(_RECSTORE) { stringstream indexpath; indexpath << dbpath << "/indexes.dat"; RecCache::tempStore.init(indexpath.str().c_str(), BucketSize); } +#endif #if !defined(_WIN32) pid_t pid = 0; diff --git a/db/rec.h b/db/rec.h index 6d53185a83c..bd45470e75d 100644 --- a/db/rec.h +++ b/db/rec.h @@ -58,8 +58,11 @@ public: */ // pick your store for indexes by setting this typedef +#if defined(_RECSTORE) +typedef BasicCached_RecStore BtreeStore; +#else typedef MongoMemMapped_RecStore BtreeStore; -//typedef BasicCached_RecStore BtreeStore; +#endif //typedef InMem_RecStore BtreeStore; const int BucketSize = 8192;