summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-03 10:44:38 -0400
committerAaron <aaron@10gen.com>2009-04-03 10:44:38 -0400
commit3369fd5b762caa2f93bae7387fd8eccdc56fecff (patch)
tree9dc7023ccc72c9b10792c40f0f9b0d62a56ed406
parent652dac2449a317c7824a20c12456b1f668c71db7 (diff)
parentab9d016282cf75884fd627b519fea200175c66da (diff)
downloadmongo-3369fd5b762caa2f93bae7387fd8eccdc56fecff.tar.gz
Merge branch 'master' of git@github.com:mongodb/mongo
-rw-r--r--README15
-rw-r--r--db/db.cpp20
2 files changed, 19 insertions, 16 deletions
diff --git a/README b/README
index 9500fe9e031..977d993d82f 100644
--- a/README
+++ b/README
@@ -28,10 +28,11 @@ BUILDING
$ cd ..
$ svn co http://svn.red-bean.com/unittest/trunk/ unittest
$ cd unittest
+ $ ./configure
$ make
$ sudo make install
-- Then use scons to build.
+- Then use scons to build.
If you want to build everything (mongod, mongo, tools, etc):
@@ -52,14 +53,14 @@ of GCC may not be happy.
NOTES
-Mongo uses the 10gen appserver and the Java Virtual Machine to execute
-user program code in the database. This feature is optional -- if you would
-like to run the database without these installed, run with the --nojni
-option. With --nojni specified, the db.eval() and $where features are no
+Mongo uses the 10gen appserver and the Java Virtual Machine to execute
+user program code in the database. This feature is optional -- if you would
+like to run the database without these installed, run with the --nojni
+option. With --nojni specified, the db.eval() and $where features are no
longer available. You may still need JVM libraries which are statically linked.
-Mongo uses memory mapped files. If built as a 32 bit executable, you will
-not be able to work with large (multi-gigabyte) databases. However, 32 bit
+Mongo uses memory mapped files. If built as a 32 bit executable, you will
+not be able to work with large (multi-gigabyte) databases. However, 32 bit
builds work fine with small development databases.
--- WINDOWS ---
diff --git a/db/db.cpp b/db/db.cpp
index 0d0964ce2b9..44251838cde 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -344,6 +344,17 @@ namespace mongo {
}
void _initAndListen(int listenPort, const char *appserverLoc = null) {
+
+#if !defined(_WIN32)
+ pid_t pid = 0;
+ pid = getpid();
+#else
+ int pid=0;
+#endif
+
+ log() << "Mongo DB : starting : pid = " << pid << " port = " << port << " dbpath = " << dbpath
+ << " master = " << master << " slave = " << slave << endl;
+
stringstream ss;
ss << "dbpath (" << dbpath << ") does not exist";
massert( ss.str().c_str(), boost::filesystem::exists( dbpath ) );
@@ -365,15 +376,6 @@ namespace mongo {
}
#endif
-#if !defined(_WIN32)
- pid_t pid = 0;
- pid = getpid();
-#else
- int pid=0;
-#endif
-
- log() << "Mongo DB : starting : pid = " << pid << " port = " << port << " dbpath = " << dbpath
- << " master = " << master << " slave = " << slave << endl;
#if !defined(NOJNI)
if ( useJNI ) {