Skip to content

Instantly share code, notes, and snippets.

@clayg
Created March 10, 2014 19:57
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/9472984 to your computer and use it in GitHub Desktop.
Save clayg/9472984 to your computer and use it in GitHub Desktop.
diff --git a/swift/obj/ssync_receiver.py b/swift/obj/ssync_receiver.py
index b3c9067..2ece089 100644
--- a/swift/obj/ssync_receiver.py
+++ b/swift/obj/ssync_receiver.py
@@ -225,12 +225,12 @@ class Receiver(object):
if not line or line.strip() == ':MISSING_CHECK: END':
break
msg_parms = [urllib.unquote(v) for v in line.split()]
- if len(msg_parms) == 3:
- (object_hash, timestamp, policy_idx) = msg_parms
+ object_hash, timestamp = msg_params[:2]
+ if len(msg_parms) >= 3:
+ policy_idx = msg_params
else:
# to support 'rolling upgrades', we'll accept pre-policy msg
# format and use policy index 0 (the legacy policy)
- (object_hash, timestamp) = msg_parms
policy_idx = 0
want = False
try:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment