Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expansion of config:info() #4094

Open
Tracked by #4085 ...
TarantoolBot opened this issue Mar 15, 2024 · 0 comments
Open
Tracked by #4085 ...

Expansion of config:info() #4094

TarantoolBot opened this issue Mar 15, 2024 · 0 comments
Labels
3.1 config reference [location] Tarantool manual, Reference part

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Mar 15, 2024

Related dev. issue(s): tarantool/tarantool#9780

Product: Tarantool
Since: 3.1
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/config/#config-api-reference-info
SME: @ ImeevMA

Details

Before this patch, the meta field of the config:info() function
contained the meta data of the last load, even if it was unsuccessful
reload. This can be inconvenient because if the reload fails, we expect
that the last configuration that was successfully applied is used, but
its metadata was lost.

Now config:info() can take one argument — the version of the
information that should be returned by the function. If no arguments are
specified or the argument is the string v1, the return value has the
same structure as before. If the argument is the string v2, the meta
field in the return value has fields - active (meta for the last
successfully applied configuration) and last (meta of the last loaded
configuration). Currently only these values are accepted.
Requested by @ ImeevMA in tarantool/tarantool@699775b.

@veod32 veod32 added the config label Mar 29, 2024
@andreyaksenov andreyaksenov added reference [location] Tarantool manual, Reference part 3.1 labels Apr 1, 2024
@andreyaksenov andreyaksenov removed their assignment Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.1 config reference [location] Tarantool manual, Reference part
Projects
None yet
Development

No branches or pull requests

3 participants