Skip to content

Instantly share code, notes, and snippets.

@clayg
Created April 14, 2015 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/116c3abc6566485f8b67 to your computer and use it in GitHub Desktop.
Save clayg/116c3abc6566485f8b67 to your computer and use it in GitHub Desktop.
diff --git a/swift/obj/reconstructor.py b/swift/obj/reconstructor.py
index 92bf462..0ee2afb 100644
--- a/swift/obj/reconstructor.py
+++ b/swift/obj/reconstructor.py
@@ -434,7 +434,7 @@ class ObjectReconstructor(Daemon):
conn = http_connect(
node['replication_ip'], node['replication_port'],
node['device'], job['partition'], 'REPLICATE',
- '/' + '-'.join(suffixes),
+ '/' + '-'.join(sorted(suffixes)),
headers=self.headers)
conn.getresponse().read()
except (Exception, Timeout):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment