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:
Thiago da Silva 2014-05-20 15:50:55 -04:00
parent ae7c93b461
commit 9e56bceacc

View File

@ -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: