fix compile issues

This commit is contained in:
Jon Fu 2023-02-21 11:46:11 -08:00
parent 2d74d10a91
commit 37fa579587
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ bool parseTenantListOptions(std::vector<StringRef> const& tokens,
auto filterStrings = value.get().splitAny(","_sr);
try {
for (auto sref : filterStrings) {
filters.push_back(TenantAPI::stringToTenantState(sref.toString()));
filters.push_back(MetaclusterAPI::stringToTenantState(sref.toString()));
}
} catch (Error& e) {
fmt::print(stderr, "ERROR: unrecognized tenant state(s) `{}'.\n", value.get().toString());

View File

@ -175,7 +175,7 @@ std::string MetaclusterTenantMapEntry::toJson() const {
tenantEntry["name"] = binaryToJson(tenantName);
tenantEntry["prefix"] = binaryToJson(prefix);
tenantEntry["tenant_state"] = MetaclusterAPI::TenantStateToString(tenantState);
tenantEntry["tenant_state"] = MetaclusterAPI::tenantStateToString(tenantState);
tenantEntry["assigned_cluster"] = binaryToJson(assignedCluster);
if (tenantGroup.present()) {