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>Stop Auto-Initialization</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" /> 9 <link rel="home" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" /> 10 <link rel="up" href="addfeatures.html" title="Chapter��5.��Additional Features" /> 11 <link rel="previous" href="manageblock.html" title="Managing Blocking Operations" /> 12 <link rel="next" href="c2ctransfer.html" title="Client to Client Transfer" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Stop Auto-Initialization</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="manageblock.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��5.��Additional Features</th> 23 <td width="20%" align="right">��<a accesskey="n" href="c2ctransfer.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="noautoinit"></a>Stop Auto-Initialization</h2> 33 </div> 34 </div> 35 <div></div> 36 </div> 37 <p> 38 As stated in the previous section, when a replication replica is synchronizing 39 with its master, it will block all DB operations until the synchronization 40 is completed. You can turn off this behavior (see <a href="manageblock.html">Managing Blocking Operations</a>), but for replicas that have been out of touch 41 from their master for a very long time, this may not be enough. 42 </p> 43 <p> 44 If a replica has been out of touch from its master long enough, it may find that 45 it is not possible to perform synchronization. When this happens, by default the 46 master and replica internally decided to completely re-initialize the replica. 47 This re-initialization involves discarding the replica's current database(s) and 48 transferring new ones to it from the master. Depending on the size of the master's 49 databases, this can take a long time, during which time the replica will be 50 complete non-responsive when it comes to performing database operations. 51 </p> 52 <p> 53 It is possible that there is a time of the day when it is better to perform a replica 54 re-initialization. Or, you simply might want to decide to bring the replica up to 55 speed by restoring it's databases using a hot-backup taken from the master. Either 56 way, you can decide to prevent automatic-initialization of your replica. To do this 57 specify 58 <span> 59 <tt class="literal">DB_REP_CONF_NOAUTOINIT</tt> to 60 <tt class="methodname">DB_ENV->rep_set_config()</tt> 61 62 and then specify <tt class="literal">1</tt> to the <tt class="literal">onoff</tt> 63 parameter. (Specify <tt class="literal">0</tt> to turn the feature off.) 64 </span> 65 66 </p> 67 </div> 68 <div class="navfooter"> 69 <hr /> 70 <table width="100%" summary="Navigation footer"> 71 <tr> 72 <td width="40%" align="left"><a accesskey="p" href="manageblock.html">Prev</a>��</td> 73 <td width="20%" align="center"> 74 <a accesskey="u" href="addfeatures.html">Up</a> 75 </td> 76 <td width="40%" align="right">��<a accesskey="n" href="c2ctransfer.html">Next</a></td> 77 </tr> 78 <tr> 79 <td width="40%" align="left" valign="top">Managing Blocking Operations��</td> 80 <td width="20%" align="center"> 81 <a accesskey="h" href="index.html">Home</a> 82 </td> 83 <td width="40%" align="right" valign="top">��Client to Client Transfer</td> 84 </tr> 85 </table> 86 </div> 87 </body> 88</html> 89