� o��fc @ so d d l m Z d d l Z e j d d k Z e r@ d d Un d d l Z d d Z d Z d Z d � Z d S( i����( t sleepNi i s from . import dbg �?i� gn��! @c O s� t } | j d d � } d | k r. | d =n x� t r� y | | | � SWq1 t j k r� t ru t j d | � n t | � | d 9} | t k r� t } n | d 8} | d k r� � q� q1 Xq1 Wd S( s? DeadlockWrap(function, *_args, **_kwargs) - automatically retries function in case of a database deadlock. This is a function intended to be used to wrap database calls such that they perform retrys with exponentially backing off sleeps in between when a DBLockDeadlockError exception is raised. A 'max_retries' parameter may optionally be passed to prevent it from retrying forever (in which case the exception will be reraised). d = DB(...) d.open(...) DeadlockWrap(d.put, "foo", data="bar") # set key "foo" to "bar" t max_retriesi����s% dbutils.DeadlockWrap: sleeping %1.3f i i N( t _deadlock_MinSleepTimet gett Truet dbt DBLockDeadlockErrort _deadlock_VerboseFilet writet _sleept _deadlock_MaxSleepTime( t functiont _argst _kwargst sleeptimeR ( ( s% /usr/lib64/python2.7/bsddb/dbutils.pyt DeadlockWrap/ s$ ( t timeR R t syst version_infot absolute_importR R R t NoneR R ( ( ( s% /usr/lib64/python2.7/bsddb/dbutils.pyt <module> s
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.__init__.pyo.40009 | File | 12.16 KB | 0644 |
|
.db.pyo.40009 | File | 592 B | 0644 |
|
.dbobj.pyo.40009 | File | 18.38 KB | 0644 |
|
.dbrecio.pyo.40009 | File | 5.18 KB | 0644 |
|
.dbshelve.pyo.40009 | File | 12.72 KB | 0644 |
|
.dbutils.pyo.40009 | File | 1.59 KB | 0644 |
|
__init__.py | File | 15.61 KB | 0644 |
|
__init__.pyc | File | 12.16 KB | 0644 |
|
__init__.pyo | File | 12.16 KB | 0644 |
|
db.py | File | 2.67 KB | 0644 |
|
db.pyc | File | 592 B | 0644 |
|
db.pyo | File | 592 B | 0644 |
|
dbobj.py | File | 11.07 KB | 0644 |
|
dbobj.pyc | File | 18.38 KB | 0644 |
|
dbobj.pyo | File | 18.38 KB | 0644 |
|
dbrecio.py | File | 5.18 KB | 0644 |
|
dbrecio.pyc | File | 5.18 KB | 0644 |
|
dbrecio.pyo | File | 5.18 KB | 0644 |
|
dbshelve.py | File | 11.31 KB | 0644 |
|
dbshelve.pyc | File | 12.72 KB | 0644 |
|
dbshelve.pyo | File | 12.72 KB | 0644 |
|
dbtables.py | File | 30.14 KB | 0644 |
|
dbtables.pyc | File | 23.95 KB | 0644 |
|
dbtables.pyo | File | 23.82 KB | 0644 |
|
dbutils.py | File | 2.89 KB | 0644 |
|
dbutils.pyc | File | 1.59 KB | 0644 |
|
dbutils.pyo | File | 1.59 KB | 0644 |
|