1313
1414#include < vespa/searchlib/attribute/address_space_components.h>
1515#include < vespa/searchlib/attribute/address_space_usage.h>
16- #include < vespa/searchlib/common/fileheadercontext .h>
16+ #include < vespa/searchlib/common/create_and_freeze_times .h>
1717#include < vespa/searchlib/util/fileutil.h>
1818#include < vespa/vespalib/util/deadline.h>
1919#include < vespa/vespalib/util/memory_allocator.h>
@@ -29,7 +29,7 @@ LOG_SETUP(".searchlib.tensor.hnsw_index");
2929namespace search ::tensor {
3030
3131using search::AddressSpaceComponents;
32- using search::common::FileHeaderContext ;
32+ using search::common::CreateAndFreezeTimes ;
3333using search::queryeval::GlobalFilter;
3434using vespalib::Generation;
3535using vespalib::GenerationGuard;
@@ -1026,7 +1026,7 @@ std::unique_ptr<NearestNeighborIndexLoader> HnswIndex<type>::make_loader(FastOS_
10261026 const vespalib::GenericHeader& header) {
10271027 assert (get_entry_nodeid () == 0 ); // cannot load after index has data
10281028 load_mips_max_distance (header, distance_function_factory ());
1029- _graph.set_last_flush_duration (FileHeaderContext::get_flush_duration (header));
1029+ _graph.set_last_flush_duration (CreateAndFreezeTimes (header). get_flush_duration ( ));
10301030 using ReaderType = FileReader<uint32_t >;
10311031 using LoaderType = HnswIndexLoader<ReaderType, type>;
10321032 return std::make_unique<LoaderType>(_graph, _id_mapping, std::make_unique<ReaderType>(&file));
0 commit comments