Flush before seek

This commit is contained in:
Kenneth Heafield 2016-01-21 21:31:25 +00:00
parent 357351f545
commit 42b8b89d54

View File

@ -58,6 +58,7 @@ class FileStream : public FakeOStream<FileStream> {
}
FileStream &seekp(uint64_t to) {
flush();
util::SeekOrThrow(fd_, to);
return *this;
}