Make sure we clear the freed the availability cores (#1921)

If a core is freed, we need to make sure it is inserted as free into
availability cores, because we can not be sure that the core is occupied
directly again.
This commit is contained in:
Bastian Köcher
2020-11-05 16:29:47 +01:00
committed by GitHub
parent 640264f38b
commit 6d4d85edda
3 changed files with 98 additions and 3 deletions
@@ -104,7 +104,7 @@ decl_module! {
let freed = freed_concluded.into_iter().map(|c| (c, FreedReason::Concluded))
.chain(freed_timeout.into_iter().map(|c| (c, FreedReason::TimedOut)));
<scheduler::Module<T>>::schedule(freed.collect());
<scheduler::Module<T>>::schedule(freed);
// Process backed candidates according to scheduled cores.
let occupied = <inclusion::Module<T>>::process_candidates(