Function : Database

NSFDbReplicaInfoGet - Get the database's DBREPLICAINFO structure.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbReplicaInfoGet(
DBHANDLE hDB,
DBREPLICAINFO far *retReplicationInfo);

Description :

This function gets the given database's DBREPLICAINFO structure. This structure contains information that tells the Domino Replicator how to treat the database.

The ".ID" member enables the Replicator to identify "replicas" of databases.

The ".CutoffInterval" is the age in days at which deleted document identifiers are purged. Domino divides this interval into thirds, and for each third of the interval carries out what amounts to an incremental purge. These deleted document identifiers are sometimes called deletion stubs.

The ".Cutoff" member is a TIMEDATE value that is calculated by subtracting the Cutoff Interval (also called Purge Interval) from today's date. It prevents notes that are older than that date from being replicated at all.

The ".Flags" member is a bit-wise encoded WORD that stores miscellaneous Replicator flags. See REPLFLG_xxx for further information on Replicator flags.

Parameters :

Sample Usage :


  /* Copy Replica info and provide new Replica ID as required. */

 if (error_status = NSFDbReplicaInfoGet(db_handle_src,
                                         &replica_info_src))
      goto Exit;


See Also :

NSFDbReplicaInfoSet
----------------------------------------------------------------------------------------------------------