Remove v2_writer lseek call

Removing lseek call as writefully() should be sufficient in ensuring our
fd is moved to the correct spot

Test: cow_api_test
Change-Id: I404b192335ab1672ed61de426e17e63ab9d51ece
This commit is contained in:
Daniel Zheng 2023-10-17 10:44:49 -07:00
parent 94a732e026
commit f8c50df1c7

View file

@ -262,11 +262,6 @@ bool CowWriterV2::OpenForWrite() {
return false;
}
if (lseek(fd_.get(), sizeof(CowHeader) + header_.buffer_size, SEEK_SET) < 0) {
PLOG(ERROR) << "lseek failed";
return false;
}
InitPos();
InitBatchWrites();