@@ -56,7 +56,7 @@ HNSWDiskIndex<DataType, DistType>::HNSWDiskIndex(
5656 : VecSimIndexAbstract<DataType, DistType>(abstractInitParams, components),
5757 idToMetaData (this ->allocator), labelToIdMap(this ->allocator), db(db), cf(cf), dbPath(" " ),
5858 indexDataGuard(), visitedNodesHandlerPool(INITIAL_CAPACITY, this ->allocator),
59- delta_list(), new_elements_meta_data(this ->allocator), batchThreshold(0 ), // Will be restored from file
59+ new_elements_meta_data(this ->allocator), batchThreshold(0 ), // Will be restored from file
6060 pendingVectorIds(this ->allocator), pendingMetadata(this ->allocator),
6161 pendingVectorCount(0 ), pendingDeleteIds(this ->allocator),
6262 stagedInsertUpdates(this ->allocator),
@@ -214,14 +214,14 @@ template <typename DataType, typename DistType>
214214void HNSWDiskIndex<DataType, DistType>::restoreVectors(std::ifstream &input, EncodingVersion version) {
215215// #ifdef HNSW_DISK_SERIALIZE_VECTORS_TO_FILE
216216 // NEW METHOD: Load vectors from metadata file
217- this ->log (VecSimCommonStrings::LOG_VERBOSE_STRING,
218- " Loading vectors from metadata file (HNSW_DISK_SERIALIZE_VECTORS_TO_FILE enabled)" );
219- restoreVectorsFromFile (input, version);
217+ // this->log(VecSimCommonStrings::LOG_VERBOSE_STRING,
218+ // "Loading vectors from metadata file (HNSW_DISK_SERIALIZE_VECTORS_TO_FILE enabled)");
219+ // restoreVectorsFromFile(input, version);
220220// #else
221- // // CURRENT METHOD: Load vectors from RocksDB (default for backward compatibility)
222- // this->log(VecSimCommonStrings::LOG_VERBOSE_STRING,
223- // "Loading vectors from RocksDB checkpoint (default method)");
224- // restoreVectorsFromRocksDB(version);
221+ // CURRENT METHOD: Load vectors from RocksDB (default for backward compatibility)
222+ this ->log (VecSimCommonStrings::LOG_VERBOSE_STRING,
223+ " Loading vectors from RocksDB checkpoint (default method)" );
224+ restoreVectorsFromRocksDB (version);
225225// #endif
226226}
227227
@@ -287,11 +287,7 @@ void HNSWDiskIndex<DataType, DistType>::saveIndexIMP(std::ofstream &output) {
287287 if (pendingDeleteIds.size () != 0 ) {
288288 throw std::runtime_error (" Serialization error: pendingDeleteIds not empty after flush" );
289289 }
290- // Note: delta_list and new_elements_meta_data are currently unused legacy variables
291- // but we verify them for future-proofing
292- if (!delta_list.empty ()) {
293- throw std::runtime_error (" Serialization error: delta_list not empty after flush" );
294- }
290+
295291 if (!new_elements_meta_data.empty ()) {
296292 throw std::runtime_error (" Serialization error: new_elements_meta_data not empty after flush" );
297293 }
0 commit comments