fix issue with GET on large object
Fixing a call to _drop_cache that had an extra parameter A patch to this issue was first provided by Xw Huang(xwhuang@qnap.com) in gluster-swift gerrit. I'm transferring the patch to swiftonfile. Fixes issue #13 Signed-off-by: Thiago da Silva <thiago@redhat.com>
This commit is contained in:
parent
ae7c93b461
commit
9e56bceacc
@ -509,7 +509,7 @@ class DiskFileReader(object):
|
||||
bytes_read += len(chunk)
|
||||
diff = bytes_read - dropped_cache
|
||||
if diff > (1024 * 1024):
|
||||
self._drop_cache(self._fd, dropped_cache, diff)
|
||||
self._drop_cache(dropped_cache, diff)
|
||||
dropped_cache = bytes_read
|
||||
yield chunk
|
||||
if self._iter_hook:
|
||||
|
Loading…
Reference in New Issue
Block a user