summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-01-11 08:11:36 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-01-11 08:11:36 +0000
commita6bc6741e1496c1d161aa07f16a65b2d26f00cce (patch)
treeb43564159db45a18d3feb234fad2d98ff662d20d /searchlib
parent57fedea84830b9c11692f169557a039609dfb4e0 (diff)
- Do not reset correctly set _vectorSize to an incorrect value.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp b/searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp
index b5c07dca923..055336c37c6 100644
--- a/searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp
+++ b/searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp
@@ -21,18 +21,15 @@ BitVectorDictionary::BitVectorDictionary()
_datHeaderLen(0u)
{ }
-
BitVectorDictionary::~BitVectorDictionary() = default;
-
bool
BitVectorDictionary::open(const vespalib::string &pathPrefix,
const TuneFileRandRead &tuneFileRead,
BitVectorKeyScope scope)
{
- vespalib::string booloccIdxName = pathPrefix + "boolocc" + getBitVectorKeyScopeSuffix(scope);
- vespalib::string booloccDatName = pathPrefix + "boolocc.bdat";
{
+ vespalib::string booloccIdxName = pathPrefix + "boolocc" + getBitVectorKeyScopeSuffix(scope);
FastOS_File idxFile;
idxFile.OpenReadOnly(booloccIdxName.c_str());
if (!idxFile.IsOpened()) {
@@ -66,7 +63,7 @@ BitVectorDictionary::open(const vespalib::string &pathPrefix,
}
}
- _vectorSize = BitVector::getFileBytes(_docIdLimit);
+ vespalib::string booloccDatName = pathPrefix + "boolocc.bdat";
_datFile = std::make_unique<FastOS_File>();
_datFile->setFAdviseOptions(tuneFileRead.getAdvise());