classafMongo::HuntThePrimary
sys::Obj afMongo::HuntThePrimary
- huntThePrimary
Uri huntThePrimary()(Advanced) Searches the replica set for the Master node and instructs all new connections to connect to it. Throws
MongoErrif a primary can not be found.This method should be followed with a call to
emptyPool().- make