⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgr_meth.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: mgr_meth.so,v 1.8 2006/09/08 18:33:38 bostic Exp $])m4_ref_title(m4_db Replication,    Replication Manager methods,, rep/app, rep/base_meth)m4_p([dnlApplications which use the Replication Manager support generally callthe following m4_db methods.  The general pattern is to call variousmethods to configure Replication Manager, and then start it by callingm4_ref(repmgr_start).  Once this initialization is complete, theapplication rarely needs to call any of these methods.  (A primeexample of an exception to this rule would be the m4_refT(rep_sync),if the application is doing m4_link(M4RELDIR/ref/rep/mastersync,delayed synchronization).)])m4_tagbeginm4_tag(m4_ref(repmgr_set_local_site), [dnlThe m4_refT(repmgr_set_local_site) configures the TCP/IP address ofthe local site, by specifying the port number on which it is to listenfor incoming connection requests.  This method must be called exactlyonce before calling m4_ref(repmgr_start).])m4_tag(m4_ref(repmgr_add_remote_site), [dnlThe m4_refT(repmgr_add_remote_site) adds a remote site to the list ofsites initially known by the local site.  The remote site is specifiedin terms of a TCP/IP network address: host name and port number.  Thismethod may be called as many times as necessary to configure all knownremote sites.  Note that it is usually not necessary for each site inthe replication group initially to know about all other sites in thegroup.  Sites can discover each other dynamically, as described inm4_link(M4RELDIR/ref/rep/newsite, Connecting to a new site).])m4_tag(m4_ref(repmgr_set_ack_policy), [dnlThe m4_refT(repmgr_set_ack_policy) configures the acknowledgementpolicy to be used in the replication group, in other words, thebehavior of the master with respect to acknowledgements for"permanent" messages, which implements the application's requirementsfor m4_link(M4RELDIR/ref/rep/trans, transactional guarantees).  Thecurrent implementation requires all sites in the replication groupconfigure the same acknowledgement policy.])m4_tag(m4_ref(rep_set_nsites), [dnlThe m4_refT(rep_set_nsites) tells Replication Manager the total numberof sites in the replication group.  This is usually necessary forproper operation of elections, and for counting messageacknowledgements (depending on the acknowledgement policy).])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), [dnlThis method optionally configures various timeout values.  Otherwisedefault timeout values as specified in m4_ref(rep_set_timeout) areused.])m4_tag(m4_ref(dbenv_set_event_notify), [dnlOnce configured and started, Replication Manager does virtually all ofits work in the background, usually without the need for any directcommunication with the application.  However, occasionally eventsoccur which the application may be interested in knowing about.  Theapplication can request notification of these events by calling them4_refT(dbenv_set_event_notify).])m4_tag(m4_ref(repmgr_start), [dnlThe m4_refT(repmgr_start) starts the replication system.  It opens thelistening TCP/IP socket and creates all the background processingthreads that will be needed.])m4_tagendm4_p([dnlIn addition to the methods previously described, Replication Managerapplications may also call the following methods, as needed:m4_ref(rep_set_config), m4_ref(rep_set_limit), m4_ref(rep_sync),m4_ref(rep_stat).])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -