diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-12-05 19:46:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 19:46:31 +0100 |
commit | 90875427bbfa35861a18a30d71b08366e6e70b5e (patch) | |
tree | 9e6088f37fe986279a1dac9a900d4189b110a8ac /searchlib | |
parent | 8a0d0ad1734115c43b5c90c47036ee0f143fd73c (diff) |
Revert "Add assert to check sanity of input."
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/datastore/entryref.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/searchlib/src/vespa/searchlib/datastore/entryref.h b/searchlib/src/vespa/searchlib/datastore/entryref.h index 9321ad8b8d1..433c260de32 100644 --- a/searchlib/src/vespa/searchlib/datastore/entryref.h +++ b/searchlib/src/vespa/searchlib/datastore/entryref.h @@ -3,7 +3,6 @@ #pragma once #include <cstdint> -#include <cassert> namespace search::datastore { @@ -29,11 +28,7 @@ class EntryRefT : public EntryRef { public: EntryRefT() : EntryRef() {} EntryRefT(uint64_t offset_, uint32_t bufferId_) : - EntryRef((offset_ << BufferBits) + bufferId_) - { - assert(offset_ < offsetSize()); - assert(bufferId_ < numBuffers()); - } + EntryRef((offset_ << BufferBits) + bufferId_) {} EntryRefT(const EntryRef & ref_) : EntryRef(ref_.ref()) {} uint32_t hash() const { return offset() + (bufferId() << OffsetBits); } uint64_t offset() const { return _ref >> BufferBits; } |