Requests a replica to synchronize with a specific server.
#include <nwnet.h> or #include <nwdsmisc.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSSyncReplicaToServer ( NWDSContextHandle context, pnstr8 serverName, pnstr8 partitionRootName, pnstr8 destServerName, nuint32 actionFlags, nuint32 delaySeconds);
uses netwin32 Function NWDSSyncReplicaToServer (context : NWDSContextHandle; serverName : pnstr8; partitionRootName : pnstr8; destServerName : pnstr8; actionFlags : nuint32; delaySeconds : nuint32 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Specifies the server that contains the replica to be synchronized.
(IN) Points to the name of the partition whose replica is to be synchronized.
(IN) Points to the server to which the replica should synchronize.
(IN) Specifies the synchronization action to be taken.
(IN) Specifies the number of seconds to delay before beginning the synchronization.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSSyncReplicaToServer requests that a replica initiate synchronization with the destination server identified by destServerName. The actionFlags parameter has the following definition:
Perform the action immediately.
If the replica is in one of the states "New", "Dying", or "Transition On", the request is ignored and SUCCESS is returned. Ignored unless SF_DO_IMMEDIATE is also set
Synchronize all objects, as opposed to only those that have changed.
Synchronize only the subject object. Ignored if SF_SEND_ALL is set.
NWDSSyncReplicaToServer has the side effect of blocking until the synchronization process has completed. The return code indicates the status of the replica by returning SUCCESS or a negative error code, which indicates a problem with synchronization of this replica.