]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
Use the object attribute max_entries, and get rid of the argument. 8/head
authorCraig Lewis <clewis@centraldesktop.com>
Thu, 6 Feb 2014 22:27:56 +0000 (14:27 -0800)
committerCraig Lewis <clewis@centraldesktop.com>
Thu, 6 Feb 2014 22:27:56 +0000 (14:27 -0800)
radosgw_agent/sync.py

index 8be41324b821a525b823e217306a655289061f2d..332fcb44f02ad8901bd1462fa58ec7aee19b3a34 100644 (file)
@@ -117,7 +117,7 @@ class Syncer(object):
             log.warn('could not set worker bounds, may repeat some work.'
                      'Traceback:', exc_info=True)
 
-    def sync(self, num_workers, log_lock_time, max_entries=None):
+    def sync(self, num_workers, log_lock_time):
         workQueue = multiprocessing.Queue()
         resultQueue = multiprocessing.Queue()
 
@@ -127,7 +127,7 @@ class Syncer(object):
                                      self.src,
                                      self.dest,
                                      daemon_id=self.daemon_id,
-                                     max_entries=max_entries,
+                                     max_entries=self.max_entries,
                                      object_sync_timeout=self.object_sync_timeout,
                                      )
                      for i in xrange(num_workers)]