| 654 | } |
| 655 | |
| 656 | void 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 | |
| 667 | bool DatabaseConfiguration::involveMutation(MutationRef m) { |
| 668 | return (m.type == MutationRef::SetValue && m.param1.startsWith(configKeysPrefix)) || |
no test coverage detected