Skip to content

Commit

Permalink
SnapshotShardsService Simplifications (#38025)
Browse files Browse the repository at this point in the history
* Instead of replacing the `shardSnapshots` field, we mutate it, explicitly removing entries from it in only a single spot
* Decreased the amount of indirection by moving all logic for starting a snapshot's newly discovered shard tasks into `startNewShards` (saves us two maps (keyed by snapshot) and iterations over them)
  • Loading branch information
original-brownbear authored Feb 1, 2019
1 parent c2e9d13 commit 03a1d21
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 166 deletions.
Loading

0 comments on commit 03a1d21

Please sign in to comment.