Skip to content

Commit

Permalink
fix some build errors when EXEC_ENV_OLS is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ltan1ms committed Feb 1, 2024
1 parent ee62d8d commit b4dd1fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions include/in_mem_graph_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include "abstract_graph_store.h"
#include "aligned_file_reader.h"

namespace diskann
{
Expand Down
1 change: 0 additions & 1 deletion src/in_mem_graph_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ std::tuple<uint32_t, uint32_t, size_t> InMemGraphStore::load_impl(AlignedFileRea
size_t file_frozen_pts;
uint32_t start;

auto max_points = get_max_points();
int header_size = 2 * sizeof(size_t) + 2 * sizeof(uint32_t);
std::unique_ptr<char[]> header = std::make_unique<char[]>(header_size);
read_array(reader, header.get(), header_size, offset);
Expand Down
4 changes: 2 additions & 2 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ void Index<T, TagT, LabelT>::load(const char *filename, uint32_t num_threads, ui
metadata_readReq.buf = metadata_buf;
metadata_readReq.offset = sizeof(uint64_t);
metadata_readReq.len = sizeof(SaveLoadMetaDataV1);
metadata_readReq.push_back(readReq);
metadata_readReqs.push_back(metadata_readReq);
reader.read(metadata_readReqs, ctx); // synchronous
if ((*(ctx.m_pRequestsStatus))[0] == IOContext::READ_SUCCESS)
{
Expand All @@ -720,7 +720,7 @@ void Index<T, TagT, LabelT>::load(const char *filename, uint32_t num_threads, ui
#endif
// Load data
#ifdef EXEC_ENV_OLS
load_data(reader, metadata.data_offset)
load_data(reader, metadata.data_offset);
#else
load_data(filename, metadata.data_offset);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
{
uint64_t dumr, dumc;
float *norm_val;
diskann::load_bin<float>(files, norm_val, dumr, dumc);
diskann::load_bin<float>(norm_file, norm_val, dumr, dumc);
#else
if (file_exists(norm_file) && metric == diskann::Metric::INNER_PRODUCT)
{
Expand Down

0 comments on commit b4dd1fe

Please sign in to comment.