forked from lei.chen/myxce
save works
This commit is contained in:
parent
b1faeb94b6
commit
b748e30d20
35 changed files with 1247 additions and 2149 deletions
|
|
@ -148,16 +148,16 @@ static int do_reply_joblist(cluster_t* c, endpoint_t* ep,
|
|||
init_reply_by_req(&reply, request);
|
||||
|
||||
if (match->type == MatchCondition_condition_matchjid) {
|
||||
job_t* j;
|
||||
job_t* j = NULL;
|
||||
|
||||
jobdata.n_total = 0;
|
||||
jobdata.jobs = NULL;
|
||||
|
||||
j = jobmgr_lockjob(&(c->jobmgr), match->condition.jobid, OBJREF_READ);
|
||||
if (j != NULL) {
|
||||
rc = key_find(c->jobmgr, (void*)match->condition.jobid, (void**)&j);
|
||||
if (rc > 0) {
|
||||
jobdata.jobs = (xce_job_t**)calloc(1, sizeof(xce_job_t*));
|
||||
if (jobdata.jobs != NULL) {
|
||||
jobdata.jobs[0] = &(j->job);
|
||||
jobdata.jobs[0] = j->job;
|
||||
jobdata.n_total = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue