Skip to content
Snippets Groups Projects
Commit 366466eb authored by Denis Ignatenko's avatar Denis Ignatenko Committed by Konstantin Osipov
Browse files

Add distribution info to box.info

There is compile time option PACKAGE in cmake to define
current build distribution info. For community edition
is it Tarantool by default. For enterprise it is
Tarantool Enterprise

There were no option to check distribution name in runtime.
This change adds box.info.package output for CE and TE.
parent 68dbd154
No related branches found
No related tags found
No related merge requests found
......@@ -534,6 +534,9 @@ lbox_info_init_static_values(struct lua_State *L)
lua_pushstring(L, "version");
lua_pushstring(L, tarantool_version());
lua_settable(L, -3);
lua_pushstring(L, "package");
lua_pushstring(L, tarantool_package());
lua_settable(L, -3);
}
/**
......
......@@ -79,6 +79,7 @@ t
- id
- lsn
- memory
- package
- pid
- replication
- ro
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment