Commit e17adcdc authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos
Browse files

pithos: Remove 'create' flag from the mapper

The file access mode is now chosen from the file mapper or blocker
according to the function that is being used, i.e., read or write
an object.

Refs #5011
parent 917e4bdf
...@@ -58,8 +58,8 @@ class Mapper(object): ...@@ -58,8 +58,8 @@ class Mapper(object):
""" """
return self.fmap.map_retr(maphash, blkoff, nr) return self.fmap.map_retr(maphash, blkoff, nr)
def map_stor(self, maphash, hashes=(), blkoff=0, create=1): def map_stor(self, maphash, hashes=(), blkoff=0):
"""Store hashes in the given hashes map.""" """Store hashes in the given hashes map."""
if self.rmap: if self.rmap:
self.rmap.map_stor(maphash, hashes, blkoff, create) self.rmap.map_stor(maphash, hashes, blkoff)
self.fmap.map_stor(maphash, hashes, blkoff, create) self.fmap.map_stor(maphash, hashes, blkoff)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment