Skip to content

[C API] Use the builder logger for stream loads - #444

Merged
yuejiaointel merged 1 commit into
mainfrom
yuejiao/c-api-stream-load-logger
Oct 22, 2026
Merged

yuejiaointel merged 1 commit into
mainfrom
yuejiao/c-api-stream-load-logger

Conversation

@yuejiaointel

Copy link
Copy Markdown
Contributor

What: svs_index_load_stream and svs_index_load_stream_dynamic now honor the logger set with svs_index_builder_set_logger.
Why: indexes restored from a stream (e.g. a Valkey RDB load) lost their per-index logger and logged through the global default logger instead.
How: the stream-load dispatchers pass the builder's logger (get_logger()) to the Vamana::assemble(std::istream&, ...) and DynamicVamana::assemble(std::istream&, ...) overloads, which already accept one; the svs_c.h remark saying stream loads ignore the builder logger is removed.
Testing: existing C API unit tests pass, public-only and LVQ/LeanVec + LTO builds (23/23 each).

🤖 Generated with Claude Code

Pass the index builder's logger to the Vamana and DynamicVamana stream assemble overloads instead of falling back to the global default logger.

@rfsaliev rfsaliev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM

Comment thread bindings/c/src/dispatcher_dynamic_vamana.cpp
@yuejiaointel
yuejiaointel enabled auto-merge (squash) October 22, 2026 15:47
@yuejiaointel
yuejiaointel merged commit 880be63 into main Oct 22, 2026
8 of 9 checks passed
@yuejiaointel
yuejiaointel deleted the yuejiao/c-api-stream-load-logger branch October 22, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants