SERVER-1517 Start with mongos checking.

This commit is contained in:
Alberto Lerner
2010-08-12 07:06:07 -07:00
parent de1d87c885
commit 812d855db2

View File

@@ -546,8 +546,8 @@ namespace mongo {
env[0] = "HEAPCHECK=normal";
env[1] = NULL;
// Heap-check for mongod and mongos only. 'argv[0]' must be in the path format.
if ( ( argv_[0].find("mongod") != string::npos) || ( argv_[0].find("mongos") != string::npos) ){
// Heap-check for mongos only. 'argv[0]' must be in the path format.
if ( argv_[0].find("mongos") != string::npos){
execvpe( argv[ 0 ], const_cast<char**>(argv) , const_cast<char**>(env) );
}
#endif // HEAP_CHECKING