Skip to content

Commit e65749f

Browse files
gholtTarmac
authored and
Tarmac
committed
Oopsy on the number of attempts to make with obj replicator
2 parents 089fab6 + a787c19 commit e65749f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/obj/replicator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def update(self, job):
363363
do_listdir=(self.replication_count % 10) == 0,
364364
reclaim_age=self.reclaim_age)
365365
self.suffix_hash += hashed
366-
attempts_left = self.object_ring.replica_count
366+
attempts_left = self.object_ring.replica_count - 1
367367
nodes = itertools.chain(job['nodes'],
368368
self.object_ring.get_more_nodes(int(job['partition'])))
369369
while attempts_left > 0:

0 commit comments

Comments
 (0)