-
-
Save smerritt/d8ca1e378c23d66c65e0 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/proxy/controllers/obj.py b/swift/proxy/controllers/obj.py | |
index a83242b..6056d2d 100644 | |
--- a/swift/proxy/controllers/obj.py | |
+++ b/swift/proxy/controllers/obj.py | |
@@ -2203,12 +2203,17 @@ class ECObjectController(BaseObjectController): | |
nodes, min_conns, etag_hasher) | |
final_phase = True | |
need_quorum = False | |
- min_resp = 2 | |
+ # The .durable file will propagate in a replicated fashion; if | |
+ # one exists, the reconstructor will spread it around. Thus, we | |
+ # don't require as many .durable files to be successfully | |
+ # written as we do fragment archives in order to call the PUT a | |
+ # success. | |
+ min_conns = 2 | |
putters = [p for p in putters if not p.failed] | |
# ignore response etags, and quorum boolean | |
statuses, reasons, bodies, _etags, _quorum = \ | |
self._get_put_responses(req, putters, len(nodes), | |
- final_phase, min_resp, | |
+ final_phase, min_conns, | |
need_quorum=need_quorum) | |
except HTTPException as resp: | |
return resp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment