Commit 03a1d21
authored
SnapshotShardsService Simplifications (#38025)
* 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)1 parent c2e9d13 commit 03a1d21
File tree
2 files changed
+127
-166
lines changed- server/src/main/java/org/elasticsearch/snapshots
2 files changed
+127
-166
lines changed
0 commit comments