Skip to content

Instantly share code, notes, and snippets.

@smerritt
Last active August 29, 2015 14:20
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 smerritt/d8ca1e378c23d66c65e0 to your computer and use it in GitHub Desktop.
Save smerritt/d8ca1e378c23d66c65e0 to your computer and use it in GitHub Desktop.
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