void checkIfReplMissingFromCommandLine() { Lock::GlobalWrite lk; // _openAllFiles is false at this point, so this is helpful for the query below to work as you can't open files when readlocked if( !cmdLine.usingReplSets() ) { Client::GodScope gs; DBDirectClient c; unsigned long long x = c.count("local.system.replset"); if( x ) { log() << endl; log() << "** warning: mongod started without --replSet yet " << x << " documents are present in local.system.replset" << endl; log() << "** restart with --replSet unless you are doing maintenance and no other clients are connected" << endl; log() << endl; } } }