Don't call operator explicitely

This commit is contained in:
mpilman 2020-02-04 11:03:43 -08:00
parent 35d4aef8ee
commit 100402aadf
2 changed files with 2 additions and 1 deletions

View File

@ -663,6 +663,7 @@ struct KeyValueStoreType {
this->type = END;
}
operator StoreType() const { return StoreType(type); }
StoreType storeType() const { return StoreType(type); }
template <class Ar>
void serialize(Ar& ar) { serializer(ar, type); }

View File

@ -107,7 +107,7 @@ std::map<std::string, std::string> configForToken( std::string const& mode ) {
// Add any new store types to fdbserver/workloads/ConfigureDatabase, too
if (storeType.present()) {
out[p+"log_engine"] = format("%d", logType.get().operator KeyValueStoreType::StoreType());
out[p+"log_engine"] = format("%d", logType.get().storeType());
out[p+"storage_engine"] = format("%d", KeyValueStoreType::StoreType(storeType.get()));
return out;
}