Skip to content

Instantly share code, notes, and snippets.

@clayg
Created April 14, 2015 03:02
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/07468e4c5476b87e50e2 to your computer and use it in GitHub Desktop.
Save clayg/07468e4c5476b87e50e2 to your computer and use it in GitHub Desktop.
diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py
index e6f25ee..069d641 100644
--- a/swift/obj/diskfile.py
+++ b/swift/obj/diskfile.py
@@ -2099,7 +2099,7 @@ class ECDiskFileManager(DiskFileManager):
:param frag_index: specifies a specific fragment index .data file
:returns: True if the file combination is compliant, False otherwise
"""
- if frag_index is not None and not accepted_files.get('.data'):
+ if not accepted_files.get('.data'):
# We may find only a .meta if searching for a specific frag index
# that is not present. That does not mean the on disk contract is
# broken, so clear the .meta to comply with superclass assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment