📄 base_meth.so
字号:
m4_comment([$Id: base_meth.so,v 1.3 2007/03/21 23:48:54 alanb Exp $])m4_ref_title(m4_db Replication, Base replication API,, rep/mgr_meth, rep/comm)m4_p([dnlApplications which use the Base replication API use the followingm4_db methods.])m4_tagbeginm4_tag(m4_ref(rep_set_transport), [dnlThe m4_refT(rep_set_transport) configures the replication system'scommunications infrastructure.])m4_tag(m4_ref(rep_start), [dnlThe m4_refT(rep_start) configures (or reconfigures) an existing databaseenvironment to be a replication master or client.])m4_tag(m4_ref(rep_message), [dnlThe m4_refT(rep_message) is used to process incoming messages from otherenvironments in the replication group. For clients, it is responsiblefor accepting log records and updating the local databases based onmessages from the master. For both the master and the clients, it isresponsible for handling administrative functions (for example, theprotocol for dealing with lost messages), and permitting new clients tojoin an active replication group. This method should only be calledafter the environment has been configured as a replication master orclient via m4_ref(rep_start).])m4_tag(m4_ref(rep_elect), [dnlThe m4_refT(rep_elect) causes the replication group to elect a newmaster; it is called whenever contact with the master is lost and theapplication wants the remaining sites to select a new master.])m4_tag(m4_ref(dbenv_set_event_notify), [dnlThe m4_refT(dbenv_set_event_notify) is needed for applications todiscover important replication-related events, such as the result ofan election and appointment of a new master.])m4_tag(m4_ref(rep_set_priority), [dnlThe m4_refT(rep_set_priority) configures the local site's priority forthe purpose of elections.])m4_tag(m4_ref(rep_set_timeout), [dnlNote that of all the various timeouts this method can set, onlym4_ref(DB_REP_ELECTION_TIMEOUT) is relevant for applications which usethe Base replication API. The others are used only by ReplicationManager.])m4_tag(m4_ref(rep_set_limit), [dnlThe m4_refT(rep_set_limit) imposes an upper bound on the amount of datathat will be sent in response to a single call to m4_ref(rep_message).During client recovery, that is, when a replica site is trying tosynchronize with the master, clients may ask the master for a largenumber of log records. If it is going to harm an application for themaster message loop to remain busy for an extended period transmittingrecords to the replica, then the application will want to usem4_ref(rep_set_limit) to limit the amount of data the master will sendbefore relinquishing control and accepting other messages.])m4_tagendm4_p([dnlIn addition to the methods previously described, applications which usethe Base replication API may also call the following methods, as needed:m4_ref(rep_stat), m4_ref(rep_sync), m4_ref(rep_set_config).])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -