This repository was archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathmongo.getslaveokay.html
102 lines (79 loc) · 3.48 KB
/
mongo.getslaveokay.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Get slaveOkay setting for this connection</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />
</head>
<body class="docs"><div class="navbar navbar-fixed-top">
<div class="navbar-inner clearfix">
<ul class="nav" style="width: 100%">
<li style="float: left;"><a href="mongo.getslave.html">« Mongo::getSlave</a></li>
<li style="float: right;"><a href="mongo.pooldebug.html">Mongo::poolDebug »</a></li>
</ul>
</div>
</div>
<div id="breadcrumbs" class="clearfix">
<ul class="breadcrumbs-container">
<li><a href="index.html">PHP Manual</a></li>
<li><a href="class.mongo.html">Mongo</a></li>
<li>Get slaveOkay setting for this connection</li>
</ul>
</div>
<div id="layout">
<div id="layout-content"><div id="mongo.getslaveokay" class="refentry">
<div class="refnamediv">
<h1 class="refname">Mongo::getSlaveOkay</h1>
<p class="verinfo">(PECL mongo >=1.1.0)</p><p class="refpurpose"><span class="refname">Mongo::getSlaveOkay</span> — <span class="dc-title">Get slaveOkay setting for this connection</span></p>
</div>
<div class="refsect1 description" id="refsect1-mongo.getslaveokay-description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="methodname"><strong>Mongo::getSlaveOkay</strong></span>(): <span class="type">bool</span></div>
<p class="para rdfs-comment">
See <a href="mongo.queries.html" class="link">the query section</a> of this manual for
information on distributing reads to secondaries.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-mongo.getslaveokay-parameters">
<h3 class="title">Parameters</h3>
<p class="para">This function has no parameters.</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-mongo.getslaveokay-returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns the value of slaveOkay for this instance.
</p>
</div>
<div class="refsect1 errors" id="refsect1-mongo.getslaveokay-errors">
<h3 class="title">Errors/Exceptions</h3>
<p class="para">Issues <strong><code>E_DEPRECATED</code></strong> warning</p>
</div>
<div class="refsect1 changelog" id="refsect1-mongo.getslaveokay-changelog">
<h3 class="title">Changelog</h3>
<p class="para">
<table class="doctable informaltable">
<thead>
<tr>
<th>Version</th>
<th>Description</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>PECL mongo 1.2.11</td>
<td>Emits <strong><code>E_DEPRECATED</code></strong> when used.</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-mongo.getslaveokay-seealso">
<h3 class="title">See Also</h3>
<ul class="simplelist">
<li class="member"><a href="mongo.readpreferences.html" class="xref">Read Preferences</a></li>
<li class="member"><span class="methodname"><a href="mongoclient.getreadpreference.html" class="methodname" rel="rdfs-seeAlso">MongoClient::getReadPreference()</a> - Get the read preference for this connection</span></li>
</ul>
</div>
</div></div></div></body></html>