MongoDB\Driver\Server::isSecondary

(mongodb >=1.0.0)

MongoDB\Driver\Server::isSecondaryChecks if this server is a secondary member of a replica set

说明

final public MongoDB\Driver\Server::isSecondary ( void ) : bool

Returns whether this server is a » secondary member of a replica set.

参数

此函数没有参数。

返回值

Returns TRUE if this server is a secondary member of a replica set, and FALSE otherwise.

错误/异常

参见

相关文章
php mongodb driver cursor checks if the cursor may have additional resultsphp mongodb driver monitoring commandfailedevent returns the server on which the command was executedphp mongodb driver monitoring commandsucceededevent returns the server on which the command was executedphp mongodb driver readconcern checks if this is the default read concernphp mongodb driver server execute a database command on this serverphp mongodb driver server execute a database query on this serverphp mongodb driver server execute a database command that reads on this serverphp mongodb driver server execute a database command that reads and writes on this serverphp mongodb driver server execute a database command that writes on this serverphp mongodb driver server returns the hostname of this serverphp mongodb driver server returns an array of information about this serverphp mongodb driver server returns the latency of this serverphp mongodb driver server returns an array of tags describing this server in a replica setphp mongodb driver server checks if this server is an arbiter member of a replica setphp mongodb driver server checks if this server is a hidden member of a replica setphp mongodb driver server checks if this server is a passive member of a replica setphp mongodb driver server checks if this server is a primary member of a replica setphp mongodb driver server checks if this server is a secondary member of a replica setphp mongodb driver writeconcern checks if this is the default write concernphp mongodb driver writeresult returns the server associated with this write result
关注编程学问公众号