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

don't create the indexes.dat file unless built for that mode.

This commit is contained in:
Dwight 2009-02-03 12:02:22 -05:00
parent a5a1691716
commit f7294fdddf
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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;