Fix for Object replicator breaks when running object replicator with no objects on the server

This commit is contained in:
gholt
2011-04-20 23:57:48 +00:00
committed by Tarmac

View File

@@ -509,6 +509,7 @@ class ObjectReplicator(Daemon):
self.partition_times = []
stats = eventlet.spawn(self.heartbeat)
lockup_detector = eventlet.spawn(self.detect_lockups)
eventlet.sleep() # Give spawns a cycle
try:
self.run_pool = GreenPool(size=self.concurrency)
jobs = self.collect_jobs()