Home
last modified time | relevance | path

Searched refs:dbenv (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/bsddb/test/
Dtest_early_close.py33 dbenv = db.DBEnv()
34 dbenv.open(self.homeDir,
38 d = db.DB(dbenv)
39 d2 = db.DB(dbenv)
47 dbenv.close() # This "close" should close the child db handle also
51 dbenv = db.DBEnv()
52 dbenv.open(self.homeDir,
56 d = db.DB(dbenv)
70 d = db.DB(dbenv)
75 dbenv.close()
[all …]
Dtest_distributed_transactions.py19 self.dbenv = db.DBEnv()
20 self.dbenv.set_tx_max(self.num_txns)
21 self.dbenv.set_lk_max_lockers(self.num_txns*2)
22 self.dbenv.set_lk_max_locks(self.num_txns*2)
23 self.dbenv.set_lk_max_objects(self.num_txns*2)
25 self.dbenv.set_flags(db.DB_TXN_NOSYNC,True)
26 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_THREAD |
30 self.db = db.DB(self.dbenv)
33 txn=self.dbenv.txn_begin()
46 self.dbenv.log_flush()
[all …]
Dtest_sequence.py13 self.dbenv = db.DBEnv()
14 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
15 self.d = db.DB(self.dbenv)
26 self.dbenv.close()
27 del self.dbenv
Dtest_replication.py286 def m2c(dbenv, control, rec, lsnp, envid, flags) : argument
289 def c2m(dbenv, control, rec, lsnp, envid, flags) : argument
525 dbenv = db.DBEnv()
527 dbenv.repmgr_get_ack_policy()
531 dbenv.close()
532 del dbenv
Dtest_associate.py366 dbenv=self.env,
/external/python/cpython2/Lib/bsddb/
Ddbshelve.py81 dbenv=None, dbname=None): argument
109 d = DBShelf(dbenv)
122 def __init__(self, dbenv=None): argument
123 self.db = db.DB(dbenv)
Ddbobj.py124 def __init__(self, dbenv, *args, **kwargs): argument
126 self._cobj = db.DB(*((dbenv._cobj,) + args), **kwargs)
/external/python/cpython2/Modules/
D_bsddb.c7213 DBEnvObject *dbenv; in _dbenv_event_notifyCallback() local
7219 dbenv = (DBEnvObject *)db_env->app_private; in _dbenv_event_notifyCallback()
7220 callback = dbenv->event_notifyCallback; in _dbenv_event_notifyCallback()
7223 args = Py_BuildValue("(Oii)", dbenv, event, *((int *)event_info)); in _dbenv_event_notifyCallback()
7225 args = Py_BuildValue("(OiO)", dbenv, event, Py_None); in _dbenv_event_notifyCallback()
7348 DBEnvObject *dbenv; in _DBEnv_rep_transportCallback() local
7356 dbenv = (DBEnvObject *)db_env->app_private; in _DBEnv_rep_transportCallback()
7357 rep_transport = dbenv->rep_transport; in _DBEnv_rep_transportCallback()
7367 dbenv, in _DBEnv_rep_transportCallback()