oops
This commit is contained in:
@@ -8,9 +8,9 @@
|
|||||||
# key_file = /etc/swift/proxy.key
|
# key_file = /etc/swift/proxy.key
|
||||||
|
|
||||||
[pipeline:main]
|
[pipeline:main]
|
||||||
pipeline = healthcheck cache auth proxy
|
pipeline = healthcheck cache auth proxy-server
|
||||||
|
|
||||||
[app:proxy]
|
[app:proxy-server]
|
||||||
use = egg:swift#proxy
|
use = egg:swift#proxy
|
||||||
# log_name = proxy-server
|
# log_name = proxy-server
|
||||||
# log_facility = LOG_LOCAL0
|
# log_facility = LOG_LOCAL0
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class AccountReaper(Daemon):
|
|||||||
sleep(random.random() * self.interval)
|
sleep(random.random() * self.interval)
|
||||||
while True:
|
while True:
|
||||||
begin = time()
|
begin = time()
|
||||||
self.reap_once()
|
self.run_once()
|
||||||
elapsed = time() - begin
|
elapsed = time() - begin
|
||||||
if elapsed < self.interval:
|
if elapsed < self.interval:
|
||||||
sleep(self.interval - elapsed)
|
sleep(self.interval - elapsed)
|
||||||
@@ -116,7 +116,7 @@ class AccountReaper(Daemon):
|
|||||||
"""
|
"""
|
||||||
Main entry point when running the reaper in 'once' mode, where it will
|
Main entry point when running the reaper in 'once' mode, where it will
|
||||||
do a single pass over all accounts on the server. This is called
|
do a single pass over all accounts on the server. This is called
|
||||||
repeatedly by :func:`reap_forever`. This will call :func:`reap_device`
|
repeatedly by :func:`run_forever`. This will call :func:`reap_device`
|
||||||
once for each device on the server.
|
once for each device on the server.
|
||||||
"""
|
"""
|
||||||
self.logger.debug('Begin devices pass: %s' % self.devices)
|
self.logger.debug('Begin devices pass: %s' % self.devices)
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ class Replicator(Daemon):
|
|||||||
"""
|
"""
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
self.replicate_once()
|
self.run_once()
|
||||||
except:
|
except:
|
||||||
self.logger.exception('ERROR trying to replicate')
|
self.logger.exception('ERROR trying to replicate')
|
||||||
sleep(self.run_pause)
|
sleep(self.run_pause)
|
||||||
|
|||||||
Reference in New Issue
Block a user