Lines Matching defs:cur_env
89 DbEnv cur_env;
221 RepQuoteExample::RepQuoteExample() : app_config(0), cur_env(0) {
228 cur_env.set_app_private(&app_data);
229 cur_env.set_errfile(stderr);
230 cur_env.set_errpfx(progname);
231 cur_env.set_event_notify(event_callback);
232 cur_env.repmgr_set_ack_policy(DB_REPMGR_ACKS_ALL);
234 cur_env.repmgr_set_local_site(app_config->this_host.host,
239 cur_env.repmgr_add_remote_site(cur->host, cur->port,
244 cur_env.rep_set_nsites(app_config->totalsites);
246 cur_env.rep_set_priority(app_config->priority);
253 cur_env.set_cachesize(0, CACHESIZE, 0);
254 cur_env.set_flags(DB_TXN_NOSYNC, 1);
256 cur_env.open(app_config->home, DB_CREATE | DB_RECOVER |
261 cur_env.set_verbose(DB_VERB_REPLICATION, 1);
263 cur_env.repmgr_start(3, app_config->start_policy);
279 cur_env.log_flush(NULL);
281 cur_env.close(0);
307 DbHolder dbh(&cur_env);