6e46a926bb
In the repair subsystem, it is necessary to acquire several extra properties of nodes that are holding pieces of things or may be selected to hold pieces. We need to know if a node is 'online' (the definition of "online" may change somewhat depending on the situation), if a node is in the process of graceful exit, and whether a node is suspended. We can't just filter out nodes with all of these properties, because sometimes we need to know properties about nodes even when the nodes are suspended or gracefully exiting. I thought the best way to do this was to add fields to SelectedNode, and (to avoid any confusion) arrange for the added fields to be populated wherever SelectedNode is returned, whether or not the new fields are necessarily going to be used. If people would rather I use a separate type from SelectedNode, I can do that instead. Change-Id: I7804a0e0a15cfe34c8ff47a227175ea5862a4ebc |
||
---|---|---|
.. | ||
gen | ||
common.go | ||
filter_test.go | ||
filter.go | ||
node.go | ||
primes.go | ||
rand_test.go | ||
rand.go | ||
region.go | ||
selector_test.go | ||
selector.go | ||
state_test.go | ||
state.go |