| 410 | serverKeysFalse; |
| 411 | |
| 412 | const UID newShardId(const uint64_t physicalShardId, AssignEmptyRange assignEmptyRange, UnassignShard unassignShard) { |
| 413 | uint64_t split = 0; |
| 414 | if (assignEmptyRange) { |
| 415 | split = emptyShardId; |
| 416 | } else if (unassignShard) { |
| 417 | split = 0; |
| 418 | } else { |
| 419 | do { |
| 420 | split = deterministicRandom()->randomUInt64(); |
| 421 | } while (split == anonymousShardId.second() || split == 0 || split == emptyShardId); |
| 422 | } |
| 423 | return UID(physicalShardId, split); |
| 424 | } |
| 425 | |
| 426 | const Key serverKeysKey(UID serverID, const KeyRef& key) { |
| 427 | BinaryWriter wr(Unversioned()); |
no test coverage detected