Download Guide to Informix Enterprise Replication, Version 7.3

Transcript
cdr_define_repl()
cdr_define_repl()
The cdr_define_repl() function defines a replicate in the global catalog.
Syntax
#include “cdrapi.h”
int
define_repl(repl_name, attrs, mflags, participants, which)
char
*repl_name;
CDR_repl_attrs *attrs;
uint4
mflags;
CDR_plist
*participants;
void
*which;
repl_name
is the name of the replicate to define.
attrs
are the replicate attributes.
mflags
are the definition flags.
participants
are the participating database servers and associated
attributes.
which
references the argument that caused the error, if the command
failed. (See Appendix A.)
Usage
The cdr_define_repl() function defines the replicate repl_name with attributes
attrs and participants participants in the global catalog.
Attribute Values for CDR_repl_attrs
The attrs argument is a pointer to the CDR_repl_attrs structure, which
specifies attributes for the replicate. These attributes specify how the system
manages replication data for the replicate. To specify attributes, set the appropriate flag bit in the flags field of the CDR_repl_attrs structure and, where
applicable, set the appropriate related field.
API Commands 12-11