MongoDB\Driver\Server::isSecondary
PHP function
Edit on GitHub ✎
(mongodb >=1.0.0)
Checks if this server is a secondary member of a replica set
Description
MongoDB\Driver\Server::isSecondary(): bool
Returns whether this server is a secondary member of a replica set.
Parameters Parameters
Return Values
Returns true if this server is a secondary member of a replica set, and false otherwise.