controller will pass resource <name, value> pair than <idx, value> pair
This commit is contained in:
parent
9f6741c2c4
commit
d47b3375e7
16 changed files with 183 additions and 86 deletions
|
|
@ -48,7 +48,7 @@ static int xce_apiserver_push_workers(cluster_t* c, endpoint_t* ep)
|
|||
for (i = 0; i < workers.n_total; i++) {
|
||||
xce_worker_t* w = workers.workers[i];
|
||||
|
||||
free_resval_with_idx_list(&(w->resvals_to_sched), w->nresvals_to_sched);
|
||||
free_name_val_list(&(w->resvals_to_sched), w->nresvals_to_sched);
|
||||
}
|
||||
|
||||
unlock_collect_workers(&wlist);
|
||||
|
|
@ -364,9 +364,9 @@ static int apiserver_worker_change(int type, int situation, void* data,
|
|||
situation);
|
||||
|
||||
xlist_init(&resvalist, 256);
|
||||
collect_resval_with_idx(&(w->host.resvals), &resvalist);
|
||||
collect_resval(c->resmgr, &(w->host.resvals), &resvalist);
|
||||
w->host.nresvals_to_sched = resvalist.count;
|
||||
w->host.resvals_to_sched = (xce_val_with_idx_t**)resvalist.data;
|
||||
w->host.resvals_to_sched = (xce_name_val_t**)resvalist.data;
|
||||
|
||||
switch (situation) {
|
||||
case HOOK_AFTER_EVENT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue