Skip to content
Snippets Groups Projects
Commit ccf6da41 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

box: hide EE configuration options

Currently, all the EE configuration options are visible in CE, but an
attempt to set them either fails or ignored. Let's be consistent and
simply hide those options from CE, like we do with the feedback daemon.
The only problem here is that some tests print the whole config to the
result file: box/cfg, box/admin, app-tap/init_script. We fixed box/cfg
and box/admin tests by adding EE keys to the cfg_filter if tests are
run by a EE binary. This should make the output the same between CE and
EE. As for app-tap/init_script, since it doesn't use cfg_filter, we
removed printing of the whole config to the result file and instead
print just box.cfg.memtx_memory - it should be enough to check that
box.cfg is accessible from an init script.

Note, we use explicit 'if' statement in ifdef_XXX functions rather than
'a and b or c', because the latter doesn't work as expected if 'b' is
boolean false.

While we are at it, make cfg_getb helper return a boolean value instead
of integer, and false instead of -1 in case of nil. (I've no idea why
it was made to return -1 in case of nil in the first place.)

NO_DOC=undocumented
NO_CHANGELOG=undocumented
parent 2695f66a
No related branches found
No related tags found
Loading
Loading
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