Skip to content

Allow fetching server info with NULL context, add other server info getters#224

Open
PDXKimani wants to merge 2 commits intovalkey-io:mainfrom
PDXKimani:contextless-server-info
Open

Allow fetching server info with NULL context, add other server info getters#224
PDXKimani wants to merge 2 commits intovalkey-io:mainfrom
PDXKimani:contextless-server-info

Conversation

@PDXKimani
Copy link

My understanding of the underlying C module API is that we're allowed to make these ServerInfo calls with a null context. This should be safe in Rust, since we're already ensuring that Free is called via Drop implementations and shouldn't need to rely on auto memory management via contexts. This change would allow modules to poll server info without having to lock a context (e.g. for background metrics collection).

This change also includes access to the other server info field APIs.

Signed-off-by: Dylan Abraham <dylan@momentohq.com>
@PDXKimani PDXKimani force-pushed the contextless-server-info branch from a0785bb to d3d7737 Compare March 4, 2026 20:14
Signed-off-by: Dylan Abraham <dylan@momentohq.com>
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