diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-04 16:49:55 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-04 16:51:23 +0000 |
commit | 85d23f4f7b45fdf807dc958669d443781a8e4d53 (patch) | |
tree | 23699f2f764d810fba1b4ebc8427ea3f72e160d3 | |
parent | debdcd3c849703dcd0f3269c664319669277b527 (diff) |
See if we can avoid an lseek.
-rw-r--r-- | searchlib/src/vespa/searchlib/transactionlog/domainpart.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/transactionlog/domainpart.cpp b/searchlib/src/vespa/searchlib/transactionlog/domainpart.cpp index fbc10e8d085..729a3171556 100644 --- a/searchlib/src/vespa/searchlib/transactionlog/domainpart.cpp +++ b/searchlib/src/vespa/searchlib/transactionlog/domainpart.cpp @@ -548,6 +548,7 @@ DomainPart::write(FastOS_FileInterface &file, const IChunk & chunk) throw runtime_error(handleWriteError("Failed writing the entry.", file, lastKnownGoodPos, chunk.range(), os.size())); } _writtenSerial = chunk.range().to(); + assert(size_t(lastKnownGoodPos) == byteSize()); _byteSize.store(lastKnownGoodPos + os.size(), std::memory_order_release); } |