Skip to content

Commit

Permalink
Min blocksize is 5MB, not 4MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Durant committed Mar 22, 2016
1 parent 9ddc569 commit 4050c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def flush(self, force=False):
return
if force and self.forced and self.buffer.tell() < 5*2**20:
raise IOError('Under-sized block already written')
if force and self.buffer.tell() < 4*2**20:
if force and self.buffer.tell() < 5*2**20:
self.forced = True
self.buffer.seek(0)
try:
Expand Down

0 comments on commit 4050c79

Please sign in to comment.