Files
362 lines
15 KiB
Plaintext
362 lines
15 KiB
Plaintext
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
#!/usr/bin/env python
#
from time import time
from eventlet.pools import Pool
from swift.common.ring import Ring
def get_error_log(prefix):
def error_log(msg_or_exc):
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
if not hasattr(msg_or_exc, 'http_status') or \
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return error_log
with connpool.item() as conn:
containers_listed = len(containers)
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
begun = time()
def direct(container, part, nodes):
retries_done[0] += attempts - 1
container_copies_found[found_count] += 1
container_parts = {}
container = 'dispersion_objects'
except ClientException, err:
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stderr.flush()
return
begun = time()
def direct(obj, part, nodes):
retries_done[0] += attempts - 1
object_copies_found[found_count] += 1
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stdout.flush()
object_parts = {}
conffile = '/etc/swift/dispersion.conf'
c = ConfigParser()
account = url.rsplit('/', 1)[1]