Merge "Remove v2_writer lseek call" into main

This commit is contained in:
Daniel Zheng 2023-10-17 23:38:48 +00:00 committed by Gerrit Code Review
commit 91bab464ed
1 changed files with 0 additions and 5 deletions

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();