Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
81f901c1
Commit
81f901c1
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
minor modifications to not mess with global names
parent
2d74961f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
+5
-6
5 additions, 6 deletions
...accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
src/slurmctld/node_scheduler.c
+1
-1
1 addition, 1 deletion
src/slurmctld/node_scheduler.c
with
6 additions
and
7 deletions
src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
+
5
−
6
View file @
81f901c1
...
@@ -1918,7 +1918,7 @@ extern int jobacct_storage_p_job_start(void *db_conn,
...
@@ -1918,7 +1918,7 @@ extern int jobacct_storage_p_job_start(void *db_conn,
* the system.
* the system.
*/
*/
if
((
req
.
db_index
&&
!
IS_JOB_RESIZING
(
job_ptr
))
if
((
req
.
db_index
&&
!
IS_JOB_RESIZING
(
job_ptr
))
||
(
!
req
.
db_index
&&
IS_JOB_FINISHED
(
job_ptr
)))
{
||
(
!
req
.
db_index
&&
IS_JOB_FINISHED
(
job_ptr
)))
{
/* This is to ensure we don't do this multiple times for the
/* This is to ensure we don't do this multiple times for the
same job. This can happen when an account is being
same job. This can happen when an account is being
deleted and hense the associations dealing with it.
deleted and hense the associations dealing with it.
...
@@ -1933,7 +1933,6 @@ extern int jobacct_storage_p_job_start(void *db_conn,
...
@@ -1933,7 +1933,6 @@ extern int jobacct_storage_p_job_start(void *db_conn,
xfree
(
req
.
block_id
);
xfree
(
req
.
block_id
);
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
}
}
/* If we don't have the db_index we need to wait for it to be
/* If we don't have the db_index we need to wait for it to be
* used in the other submissions for this job.
* used in the other submissions for this job.
*/
*/
...
@@ -2228,7 +2227,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
...
@@ -2228,7 +2227,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
dbd_cond_msg_t
get_msg
;
dbd_cond_msg_t
get_msg
;
dbd_list_msg_t
*
got_msg
;
dbd_list_msg_t
*
got_msg
;
int
rc
;
int
rc
;
List
job_list
=
NULL
;
List
my_
job_list
=
NULL
;
memset
(
&
get_msg
,
0
,
sizeof
(
dbd_cond_msg_t
));
memset
(
&
get_msg
,
0
,
sizeof
(
dbd_cond_msg_t
));
...
@@ -2244,7 +2243,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
...
@@ -2244,7 +2243,7 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
dbd_rc_msg_t
*
msg
=
resp
.
data
;
dbd_rc_msg_t
*
msg
=
resp
.
data
;
if
(
msg
->
return_code
==
SLURM_SUCCESS
)
{
if
(
msg
->
return_code
==
SLURM_SUCCESS
)
{
info
(
"%s"
,
msg
->
comment
);
info
(
"%s"
,
msg
->
comment
);
job_list
=
list_create
(
NULL
);
my_
job_list
=
list_create
(
NULL
);
}
else
{
}
else
{
slurm_seterrno
(
msg
->
return_code
);
slurm_seterrno
(
msg
->
return_code
);
error
(
"%s"
,
msg
->
comment
);
error
(
"%s"
,
msg
->
comment
);
...
@@ -2255,12 +2254,12 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
...
@@ -2255,12 +2254,12 @@ extern List jobacct_storage_p_get_jobs_cond(void *db_conn, uid_t uid,
resp
.
msg_type
);
resp
.
msg_type
);
}
else
{
}
else
{
got_msg
=
(
dbd_list_msg_t
*
)
resp
.
data
;
got_msg
=
(
dbd_list_msg_t
*
)
resp
.
data
;
job_list
=
got_msg
->
my_list
;
my_
job_list
=
got_msg
->
my_list
;
got_msg
->
my_list
=
NULL
;
got_msg
->
my_list
=
NULL
;
slurmdbd_free_list_msg
(
got_msg
);
slurmdbd_free_list_msg
(
got_msg
);
}
}
return
job_list
;
return
my_
job_list
;
}
}
/*
/*
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/node_scheduler.c
+
1
−
1
View file @
81f901c1
...
@@ -996,7 +996,7 @@ static void _preempt_jobs(List preemptee_job_list, int *error_code)
...
@@ -996,7 +996,7 @@ static void _preempt_jobs(List preemptee_job_list, int *error_code)
* 3) Call allocate_nodes() to perform the actual allocation
* 3) Call allocate_nodes() to perform the actual allocation
*/
*/
extern
int
select_nodes
(
struct
job_record
*
job_ptr
,
bool
test_only
,
extern
int
select_nodes
(
struct
job_record
*
job_ptr
,
bool
test_only
,
bitstr_t
**
select_node_bitmap
)
bitstr_t
**
select_node_bitmap
)
{
{
int
error_code
=
SLURM_SUCCESS
,
i
,
node_set_size
=
0
;
int
error_code
=
SLURM_SUCCESS
,
i
,
node_set_size
=
0
;
bitstr_t
*
select_bitmap
=
NULL
;
bitstr_t
*
select_bitmap
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment