📄 faq.so
字号:
m4_comment([$Id: faq.so,v 10.6 2006/05/01 15:32:01 bostic Exp $])m4_ref_title(Environment, Environment FAQ, database @environment FAQ, env/remote, cam/intro)m4_nlistbeginm4_nlist([dnlm4_bold([I'm using multiple processes to access an m4_db databaseenvironment; is there any way to ensure that two processes don't runtransactional recovery at the same time, or that all processes haveexited the database environment so that recovery can be run?])m4_p([dnlSee m4_link(M4RELDIR/ref/transapp/fail, Handling failure inTransactional Data Store applications) andm4_link(M4RELDIR/ref/transapp/app, Architecting Transactional Data Storeapplications) for a full discussion of this topic.])])m4_nlist([dnlm4_bold([How can I associate application information with a m4_ref(Db)or m4_ref(DbEnv) handle?])m4_p([dnlIn the C API, the m4_ref(Db) and m4_ref(DbEnv) structures each containan "app_private" field intended to be used to referenceapplication-specific information. See the m4_ref(dbh_create) andm4_ref(dbenv_create) documentation for more information.])m4_p([dnlIn the C++ or Java APIs, the easiest way to associateapplication-specific data with a handle is to subclass the m4_refcxx(Db)or m4_refcxx(DbEnv), for example subclassing m4_refcxx(Db) to get MyDb.Objects of type MyDb will still have the m4_db API methods available onthem, and you can put any extra data or methods you want into the MyDbclass. If you are using "callback" APIs that take m4_refcxx(Db) orm4_refcxx(DbEnv) arguments (for example, m4_refcxx(dbh_set_bt_compare))these will always be called with the m4_refcxx(Db) or m4_refcxx(DbEnv)objects you create. So if you always use MyDb objects, you will be ableto take the first argument to the callback function and cast it to aMyDb (in C++, cast it to (MyDb*)). That will allow you to access yourdata members or methods.])])m4_nlistendm4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -