View | Details | Raw Unified | Return to ticket 5821
Collapse All | Expand All

(-)a/src/common/gres.c (-6 / +7 lines)
Lines 5825-5836 static int _job_alloc(void *job_gres_data, void *node_gres_data, Link Here
5825
			      gres_name, job_id);
5825
			      gres_name, job_id);
5826
			xfree(job_gres_ptr->gres_bit_alloc);
5826
			xfree(job_gres_ptr->gres_bit_alloc);
5827
		}
5827
		}
5828
		job_gres_ptr->gres_bit_alloc = xmalloc(sizeof(bitstr_t *) *
5829
						       node_cnt);
5830
		if (!job_gres_ptr->gres_cnt_node_alloc) {
5831
			job_gres_ptr->gres_cnt_node_alloc =
5832
				xmalloc(sizeof(uint64_t) * node_cnt);
5833
		}
5834
	}
5828
	}
5835
	/*
5829
	/*
5836
	 * These next 2 checks were added long before job resizing was allowed.
5830
	 * These next 2 checks were added long before job resizing was allowed.
Lines 5849-5854 static int _job_alloc(void *job_gres_data, void *node_gres_data, Link Here
5849
		      gres_name, job_id, job_gres_ptr->node_cnt, node_cnt);
5843
		      gres_name, job_id, job_gres_ptr->node_cnt, node_cnt);
5850
	}
5844
	}
5851
5845
5846
	if (!job_gres_ptr->gres_bit_alloc)
5847
		job_gres_ptr->gres_bit_alloc =
5848
			xmalloc(sizeof(bitstr_t *) * node_cnt);
5849
	if (!job_gres_ptr->gres_cnt_node_alloc)
5850
		job_gres_ptr->gres_cnt_node_alloc =
5851
			xmalloc(sizeof(uint64_t) * node_cnt);
5852
5852
	/*
5853
	/*
5853
	 * Check that sufficient resources exist on this node
5854
	 * Check that sufficient resources exist on this node
5854
	 */
5855
	 */

Return to ticket 5821