duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #02932
[Merge] lp:~raymii/duplicity/fix-swiftbackend-max-10000-files-in-list into lp:duplicity
Remy van Elst has proposed merging lp:~raymii/duplicity/fix-swiftbackend-max-10000-files-in-list into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
For more details, see:
https://code.launchpad.net/~raymii/duplicity/fix-swiftbackend-max-10000-files-in-list/+merge/260660
Swiftclient by default returns at max 10000 files. By adding full_listing=True we make sure all objects are returned. Ref: https://lists.nongnu.org/archive/html/duplicity-talk/2015-05/msg00060.html and http://docs.openstack.org/developer/python-swiftclient/swiftclient.html#swiftclient.client.get_container
--
Your team duplicity-team is requested to review the proposed merge of lp:~raymii/duplicity/fix-swiftbackend-max-10000-files-in-list into lp:duplicity.
=== modified file 'duplicity/backends/swiftbackend.py'
--- duplicity/backends/swiftbackend.py 2015-01-31 18:09:03 +0000
+++ duplicity/backends/swiftbackend.py 2015-05-31 15:46:09 +0000
@@ -110,7 +110,7 @@
f.write(chunk)
def _list(self):
- headers, objs = self.conn.get_container(self.container)
+ headers, objs = self.conn.get_container(self.container, full_listing=True)
return [o['name'] for o in objs]
def _delete(self, filename):
Follow ups