Merge "Give spawn a cycle"
This commit is contained in:
@@ -564,7 +564,6 @@ class ObjectReconstructor(Daemon):
|
|||||||
self.logger.exception(
|
self.logger.exception(
|
||||||
'Unable to purge DiskFile (%r %r %r)',
|
'Unable to purge DiskFile (%r %r %r)',
|
||||||
object_hash, timestamps['ts_data'], frag_index)
|
object_hash, timestamps['ts_data'], frag_index)
|
||||||
continue
|
|
||||||
|
|
||||||
def process_job(self, job):
|
def process_job(self, job):
|
||||||
"""
|
"""
|
||||||
@@ -923,11 +922,11 @@ class ObjectReconstructor(Daemon):
|
|||||||
|
|
||||||
stats = spawn(self.heartbeat)
|
stats = spawn(self.heartbeat)
|
||||||
lockup_detector = spawn(self.detect_lockups)
|
lockup_detector = spawn(self.detect_lockups)
|
||||||
sleep() # Give spawns a cycle
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.run_pool = GreenPool(size=self.concurrency)
|
self.run_pool = GreenPool(size=self.concurrency)
|
||||||
for part_info in self.collect_parts(**kwargs):
|
for part_info in self.collect_parts(**kwargs):
|
||||||
|
sleep() # Give spawns a cycle
|
||||||
if not self.check_ring(part_info['policy'].object_ring):
|
if not self.check_ring(part_info['policy'].object_ring):
|
||||||
self.logger.info(_("Ring change detected. Aborting "
|
self.logger.info(_("Ring change detected. Aborting "
|
||||||
"current reconstruction pass."))
|
"current reconstruction pass."))
|
||||||
|
Reference in New Issue
Block a user