MCPcopy Create free account
hub / github.com/apple/foundationdb / validateOptionValueNotPresent

Function validateOptionValueNotPresent

fdbclient/NativeAPI.actor.cpp:477–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void validateOptionValueNotPresent(Optional<StringRef> value) {
478 if (value.present() && value.get().size() > 0) {
479 throw invalid_option_value();
480 }
481}
482
483void dumpMutations(const MutationListRef& mutations) {
484 for (auto m = mutations.begin(); m; ++m) {

Callers 3

setOptionMethod · 0.85
setNetworkOptionFunction · 0.85
setOptionImplMethod · 0.85

Calls 3

getMethod · 0.65
presentMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected