If we have a CONF_DEFAULT in the values map we do not need to include it
in the diff!
Signed-off-by: Sage Weil <sage@redhat.com>
{
Mutex::Locker l(lock);
for (auto& i : values) {
+ if (i.second.size() == 1 &&
+ i.second.begin()->first == CONF_DEFAULT) {
+ // we only have a default value; exclude from diff
+ continue;
+ }
f->open_object_section(i.first.c_str());
const Option *o = find_option(i.first);
dump(f, CONF_DEFAULT, _get_val_default(*o));