| 243 | |
| 244 | |
| 245 | bool ReplicaProcess::missing(uint64_t position) |
| 246 | { |
| 247 | if (position < begin) { |
| 248 | return false; // Truncated positions are treated as learned. |
| 249 | } else if (position > end) { |
| 250 | return true; |
| 251 | } else { |
| 252 | return unlearned.contains(position) || holes.contains(position); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | |
| 257 | // TODO(jieyu): Allow this method to take an Interval. |
no test coverage detected