diff options
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/diskindex/bitvectordictionary.cpp | 7 |
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()); |