Skip to content

How to get service info (in partcular service cert) without a transaction #4324

Answered by eddyashton
jeffa5 asked this question in Q&A
Discussion options

You must be logged in to vote

The other way of accessing state is to use a Subsystem. See node_configuration_subsytem.h for an example of one which exposes the node's startup configuration.

The service cert is particularly difficult though, because it is not produced immediately on startup. So it might be accessible in open(), but not in your app/registry's constructor. There's also situations where the service cert changes - primarily on restarts in disaster recovery, but also on explicit cert validity renewals by members.

What's the use case for reading service info without a transaction? If it's executed outside of a transaction (eg - in an index), we should consider what value of the ServiceInfo we want to use, an…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeffa5
Comment options

Answer selected by jeffa5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants