Debian Codegraph @

docs/api_reference/C/dbsite_remove.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DB_SITE-&gt;remove()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10 <link rel="up" href="rep.html" title="Chapter 10.  Replication Methods" />
11 <link rel="prev" href="dbsite_get_eid.html" title="DB_SITE-&gt;get_eid()" />
12 <link rel="next" href="dbsite_set_config.html" title="DB_SITE-&gt;set_config()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_SITE-&gt;remove()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbsite_get_eid.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 10. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbsite_set_config.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="dbsite_remove"></a>DB_SITE-&gt;remove()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_SITE-&gt;remove(DB_SITE *site); </pre>
45 <p>
46 The <code class="methodname">DB_SITE-&gt;remove()</code> method removes the
47 site from the replication group. If called at the master site,
48 repmgr updates the membership database directly. If called from a
49 client, this method causes a request to be sent to the master to
50 perform the operation. The method then awaits confirmation.
51 </p>
52 <p>
53 The DB_SITE handle must not be accessed again after this
54 method is called, regardless of the return value.
55 </p>
56 <p>
57 The <code class="methodname">DB_SITE-&gt;remove()</code> <span>
58 <span>
59 method returns a non-zero error value on failure and 0 on success.
60 </span>
61
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp53933480"></a>Errors</h3>
69 </div>
70 </div>
71 </div>
72 <p>
73 The <code class="methodname">DB_SITE-&gt;remove()</code> <span>
74 <span>
75 method may fail and return one of the following non-zero errors:
76 </span>
77
78 </span>
79 </p>
80 <div class="sect3" lang="en" xml:lang="en">
81 <div class="titlepage">
82 <div>
83 <div>
84 <h4 class="title"><a id="idp53936800"></a>DB_REP_UNAVAIL</h4>
85 </div>
86 </div>
87 </div>
88 <p>
89 The master updated the database but did not receive enough
90 acknowledgements from clients sufficient to meet the
91 current ack policy or there was an attempt to remove the
92 current master site from the replication group.
93 </p>
94 </div>
95 </div>
96 <div class="sect2" lang="en" xml:lang="en">
97 <div class="titlepage">
98 <div>
99 <div>
100 <h3 class="title"><a id="idp53926584"></a>Class</h3>
101 </div>
102 </div>
103 </div>
104 <p>
105 <a class="link" href="db_site.html" title="The DB_SITE Handle">DB_SITE</a>
106 </p>
107 </div>
108 <div class="sect2" lang="en" xml:lang="en">
109 <div class="titlepage">
110 <div>
111 <div>
112 <h3 class="title"><a id="idp53911144"></a>See Also</h3>
113 </div>
114 </div>
115 </div>
116 <p>
117 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>
118 </p>
119 </div>
120 </div>
121 <div class="navfooter">
122 <hr />
123 <table width="100%" summary="Navigation footer">
124 <tr>
125 <td width="40%" align="left"><a accesskey="p" href="dbsite_get_eid.html">Prev</a> </td>
126 <td width="20%" align="center">
127 <a accesskey="u" href="rep.html">Up</a>
128 </td>
129 <td width="40%" align="right"> <a accesskey="n" href="dbsite_set_config.html">Next</a></td>
130 </tr>
131 <tr>
132 <td width="40%" align="left" valign="top">DB_SITE-&gt;get_eid() </td>
133 <td width="20%" align="center">
134 <a accesskey="h" href="index.html">Home</a>
135 </td>
136 <td width="40%" align="right" valign="top"> DB_SITE-&gt;set_config()</td>
137 </tr>
138 </table>
139 </div>
140 </body>
141 </html>