MB-23267: Add ability to hide inapplicable config options 61/75961/10
authorJames Harrison <00jamesh@gmail.com>
Tue, 28 Mar 2017 12:46:12 +0000 (13:46 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 10 Apr 2017 10:09:49 +0000 (10:09 +0000)
commit9a7e1093525657a8c7db73ae57bcb531ad06c29f
treec3751630fe069f38756bbe4780e565aa0b1a98ff
parent275ceda62d50c052f51f28665bebde54d6a2b0ea
MB-23267: Add ability to hide inapplicable config options

This is expressed by declaring the requirements for a particular config
option in configuration.json e.g.,

"ephemeral_full_policy": {
    ...
    "requirements": {
        "bucket_type": "ephemeral"
    }
}

This example prevents "ephemeral_full_policy" from being listed in stats
if "bucket_type" is not "ephemeral".

Change-Id: I4c85132612f55a4edb7c5497c9744ef63efbd206
Reviewed-on: http://review.couchbase.org/75961
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/configuration.cc
src/configuration.h
src/configuration_impl.h [new file with mode: 0644]
tools/genconfig.cc