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:
parent
a5a1691716
commit
f7294fdddf
@ -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;
|
||||
|
5
db/rec.h
5
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;
|
||||
|
Loading…
Reference in New Issue
Block a user