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

Method applyMutation

fdbclient/DatabaseConfiguration.cpp:656–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void DatabaseConfiguration::applyMutation(MutationRef m) {
657 if (m.type == MutationRef::SetValue && m.param1.startsWith(configKeysPrefix)) {
658 set(m.param1, m.param2);
659 } else if (m.type == MutationRef::ClearRange) {
660 KeyRangeRef range(m.param1, m.param2);
661 if (range.intersects(configKeys)) {
662 clear(range & configKeys);
663 }
664 }
665}
666
667bool DatabaseConfiguration::involveMutation(MutationRef m) {
668 return (m.type == MutationRef::SetValue && m.param1.startsWith(configKeysPrefix)) ||

Callers 1

Calls 4

setFunction · 0.70
clearFunction · 0.70
startsWithMethod · 0.45
intersectsMethod · 0.45

Tested by

no test coverage detected