diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-04-03 09:30:10 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-04-03 09:30:10 -0400 |
commit | 39337b56449540034c1b46898b747dfc0132ebbd (patch) | |
tree | c4115426789164688fef4965848808e2626d4d3f | |
parent | 1866fed9c62ae0acd16c5c0a1059db31de009ddb (diff) | |
download | mongo-39337b56449540034c1b46898b747dfc0132ebbd.tar.gz |
change logging order to make test failing clearer
-rw-r--r-- | db/db.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
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 ) { |