Storage::GetEntryInfo: Actually filter on types.

This commit is contained in:
Peter Johnson
2015-07-19 19:42:13 -07:00
parent 67ae9e1ba7
commit e4731a4e4e

View File

@@ -113,6 +113,7 @@ std::vector<EntryInfo> Storage::GetEntryInfo(StringRef prefix,
auto entry = i.getValue();
auto value = entry->value();
if (!value) continue;
if (types != 0 && (types & value->type()) == 0) continue;
EntryInfo info;
info.name = i.getKey();
info.type = value->type();