diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-09 13:34:12 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-09 13:34:12 +0000 |
commit | 4cc2c486951b50358deb3744319affa750790b3d (patch) | |
tree | fc58fcb505ebc86c3edaa183cc51a22c62b094a6 /searchcore | |
parent | bcf3647d731302a7f6f55798d08680f133ab4f3d (diff) |
Only assert on the bytes that are actually initialized.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/bucketdb/bucketstate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/bucketdb/bucketstate.cpp b/searchcore/src/vespa/searchcore/proton/bucketdb/bucketstate.cpp index ea4c197ef02..0eb9c27d9cf 100644 --- a/searchcore/src/vespa/searchcore/proton/bucketdb/bucketstate.cpp +++ b/searchcore/src/vespa/searchcore/proton/bucketdb/bucketstate.cpp @@ -134,8 +134,7 @@ BucketState::empty() const if (getReadyCount() != 0 || getRemovedCount() != 0 || getNotReadyCount() != 0) return false; - assert(_ch._xxh64 == 0); - assert(_ch._legacy == 0); + assert((_checksumType == ChecksumAggregator::ChecksumType::LEGACY) ? (_ch._legacy == 0) : (_ch._xxh64 == 0)); for (uint32_t i = 0; i < COUNTS; ++i) { assert(_docSizes[i] == 0); } |