diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-04 19:00:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 19:00:59 +0200 |
commit | a111efe8c259096cc5c9897bbf981f178c823b72 (patch) | |
tree | 23699f2f764d810fba1b4ebc8427ea3f72e160d3 | |
parent | debdcd3c849703dcd0f3269c664319669277b527 (diff) | |
parent | 85d23f4f7b45fdf807dc958669d443781a8e4d53 (diff) |
Merge pull request #14297 from vespa-engine/balder/assert-that-we-know-where-we-are
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); } |