Skip to content

Add peer_id param to log_entries_ext - #120

Merged
antonio2368 merged 3 commits into
masterfrom
keeper-readahead-peer-id
Aug 10, 2026
Merged

Add peer_id param to log_entries_ext#120
antonio2368 merged 3 commits into
masterfrom
keeper-readahead-peer-id

Conversation

@antonio2368

Copy link
Copy Markdown
Member

No description provided.

antonio2368 and others added 3 commits July 2, 2026 12:25
Add int32 peer_id = -1 as 4th param to the base virtual log_entries_ext
in log_store.hxx. The default sentinel preserves source compatibility for
all existing callers.

Update in_memory_log_store.{hxx,cxx} to add the matching param (the
example does not use the override keyword, so an explicit update is needed
to avoid a silent stop-overriding).

Update the production call site in handle_append_entries.cxx to pass
p.get_id() so the ClickHouse KeeperLogStore override can identify the
requesting follower peer for the per-peer read-ahead feature.

NuRaft submodule note: this is an in-tree edit in the ClickHouse
ClickHouse-keeper-changelog-readahead worktree. A separate upstream NuRaft
PR will be needed before the submodule pointer can be bumped in the main
repo.

Co-Authored-By: Claude Sonnet (Claude Code) <noreply@anthropic.com>
@antonio2368
antonio2368 merged commit bfbcb67 into master Aug 10, 2026
1 check passed
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.

1 participant