From a787c19eb2c3a93afe94d531badbb16874edcc71 Mon Sep 17 00:00:00 2001 From: gholt Date: Mon, 18 Oct 2010 11:58:12 -0700 Subject: [PATCH] Oopsy on the number of attempts to make with obj replicator --- swift/obj/replicator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/obj/replicator.py b/swift/obj/replicator.py index 487724fc09..76d95e970e 100644 --- a/swift/obj/replicator.py +++ b/swift/obj/replicator.py @@ -363,7 +363,7 @@ class ObjectReplicator(Daemon): do_listdir=(self.replication_count % 10) == 0, reclaim_age=self.reclaim_age) self.suffix_hash += hashed - attempts_left = self.object_ring.replica_count + attempts_left = self.object_ring.replica_count - 1 nodes = itertools.chain(job['nodes'], self.object_ring.get_more_nodes(int(job['partition']))) while attempts_left > 0: