Created
March 10, 2014 19:57
-
-
Save clayg/9472984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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