Don't call operator explicitely
This commit is contained in:
parent
35d4aef8ee
commit
100402aadf
|
@ -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); }
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue