diff options
Diffstat (limited to 'util/stream/io.hh')
-rw-r--r-- | util/stream/io.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/io.hh b/util/stream/io.hh index c3b53bbfe..4605a8a79 100644 --- a/util/stream/io.hh +++ b/util/stream/io.hh @@ -70,8 +70,8 @@ class FileBuffer { return PWriteAndRecycle(file_.get()); } - PRead Source() const { - return PRead(file_.get()); + PRead Source(bool discard = false) { + return PRead(discard ? file_.release() : file_.get(), discard); } uint64_t Size() const { |