mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!--Copyright 1999-2002 by Sleepycat Software, Inc.-->
 | |
| <!--All rights reserved.-->
 | |
| <html>
 | |
| <head>
 | |
|    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 | |
|    <title>Replication commands</title>
 | |
| </head>
 | |
| <body>
 | |
| 
 | |
| <h2>
 | |
| <a NAME="Replication Commands"></a>Replication Commands</h2>
 | |
| Replication commands are invoked from the environment handle, after
 | |
| it has been opened with the appropriate flags defined
 | |
| <a href="./env.html">here</a>.<br>
 | |
| <hr WIDTH="100%">
 | |
| <p><b>> <env> rep_process_message <i>machid</i> <i>control</i>
 | |
| <i>rec</i></b>
 | |
| <p>This command processes a single incoming replication message.  It
 | |
| is a direct translation of the <a
 | |
| href="../../docs/api_c/rep_process_message.html">rep_process_message</a>
 | |
| function. 
 | |
| It returns either a 0 (for success), a DB error message or it throws a
 | |
| Tcl error with a system message.  The arguments are:
 | |
| <ul>
 | |
| <li>
 | |
| <b>machid </b>is the machine ID of the machine that <i>sent</i> this
 | |
| message.</li>
 | |
| 
 | |
| <li>
 | |
| <b>control</b> is a binary string containing the exact contents of the
 | |
| <b><i>control</i></b> argument to the <b><i>sendproc</i></b> function
 | |
| that was passed this message on another site.</li>
 | |
| 
 | |
| <li>
 | |
| <b>rec</b> is a binary string containing the exact contents of the
 | |
| <b><i>rec</i></b> argument to the <b><i>sendproc</i></b> function
 | |
| that was passed this message on another site.</li>
 | |
| </ul>
 | |
| 
 | |
| <hr WIDTH="100%">
 | |
| <br><b>> <env> rep_elect <i>nsites</i> <i>pri</i> <i>wait</i>
 | |
| <i>sleep</i></b>
 | |
| <p>This command causes a replication election.  It is a direct translation
 | |
| of the <a href="../../docs/api_c/rep_elect.html">rep_elect</a> function. 
 | |
| Its arguments, all integers, correspond exactly to that C function's
 | |
| parameters.
 | |
| It will return a list containing two integers, which contain,
 | |
| respectively, the integer values returned in the C function's
 | |
| <i><b>midp</b></i> and <i><b>selfp</b></i> parameters.
 | |
| </body>
 | |
| </html>
 | 
