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

Function singleKeyOrValue

fdbserver/storageserver.actor.cpp:4057–4060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4055}
4056
4057bool singleKeyOrValue(const std::string& s, size_t sz) {
4058 // format would be {K[??]} or {V[??]}
4059 return sz > 5 && s[0] == '{' && (s[1] == 'K' || s[1] == 'V') && s[2] == '[' && s[sz - 2] == ']' && s[sz - 1] == '}';
4060}
4061
4062bool rangeQuery(const std::string& s) {
4063 return s == "{...}";

Callers 1

preprocessMappedKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected