mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
32-bit startup message
This commit is contained in:
parent
2b0dbe323d
commit
b3322b86a0
10
db/db.cpp
10
db/db.cpp
@ -344,8 +344,16 @@ namespace mongo {
|
||||
int pid=0;
|
||||
#endif
|
||||
|
||||
bool is32bit = sizeof(int*) == 4;
|
||||
|
||||
log() << "Mongo DB : starting : pid = " << pid << " port = " << port << " dbpath = " << dbpath
|
||||
<< " master = " << master << " slave = " << slave << " " << ( ( sizeof(int*) == 4 ) ? "32" : "64" ) << "-bit " << endl;
|
||||
<< " master = " << master << " slave = " << slave << " " << ( is32bit ? "32" : "64" ) << "-bit " << endl;
|
||||
|
||||
if ( is32bit ){
|
||||
log() << "** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data" << endl;
|
||||
log() << "** see http://blog.mongodb.org/post/137788967/32-bit-limitations for more" << endl;
|
||||
}
|
||||
|
||||
|
||||
stringstream ss;
|
||||
ss << "dbpath (" << dbpath << ") does not exist";
|
||||
|
Loading…
Reference in New Issue
Block a user