Remove superfluous "has" function
[?]
Nov 2, 2015, 1:29 PM
7CCLJLW7KARUC2ZVJPFALT6SKXEJV4LZE326MVH5TLUBBX7WY3LQCDependencies
- [2]
RND7XFNHgetQueuedBuilds(): Periodically stop to handle priority bumps - [3]
HUUZFPPKFix race between the queue monitor and the builder threads - [4]
HJOEIMLRRefactor - [5]
24BMQDZAStart of single-process hydra-queue-runner - [6]
OG3Z3QGCNamespace cleanup - [7]
T5BIOVJEAdd support for tracking custom metrics - [8]
MHVIT4JYSplit hydra-queue-runner.cc more - [9]
ENXUSMSVMake concurrency more robust
Change contents
- replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 252
if (has(steps, step)) return;if (steps.count(step)) return; - replacement in src/hydra-queue-runner/queue-monitor.cc at line 92
if (has(*builds_, id)) continue;if (builds_->count(id)) continue; - edit in src/hydra-queue-runner/state.hh at line 442
template <class C, class V>bool has(const C & c, const V & v){return c.find(v) != c.end();}