Skip to content

Create cluster nodes dict and request list when initiating valkeyClusterContext#123

Merged
bjosv merged 2 commits intovalkey-io:mainfrom
bjosv:allocate-at-cluster-init
Oct 23, 2024
Merged

Create cluster nodes dict and request list when initiating valkeyClusterContext#123
bjosv merged 2 commits intovalkey-io:mainfrom
bjosv:allocate-at-cluster-init

Conversation

@bjosv
Copy link
Copy Markdown
Collaborator

@bjosv bjosv commented Oct 22, 2024

It simplifies the code a bit when these are allocated at context initiation.

bjosv added 2 commits October 22, 2024 09:25
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
@bjosv bjosv requested a review from zuiderkwast October 22, 2024 21:08
Copy link
Copy Markdown
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Looks reasonable. We never free it except in the release function, so there is no chance it can ever be NULL now? I didn't check that OOM test suite with the hard-coded numbers.

@bjosv
Copy link
Copy Markdown
Collaborator Author

bjosv commented Oct 23, 2024

We never free it except in the release function, so there is no chance it can ever be NULL now?

Exactly, we only free in the release function.

@bjosv bjosv merged commit c95220a into valkey-io:main Oct 23, 2024
@bjosv bjosv deleted the allocate-at-cluster-init branch October 23, 2024 21:38
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.

2 participants