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
847bd326
Commit
847bd326
authored
9 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Prolog startup bug fix
This bug was introduced yesterday in commit
6cb722dc
parent
6cb722dc
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/slurmd/slurmd/req.c
+3
-6
3 additions, 6 deletions
src/slurmd/slurmd/req.c
src/slurmd/slurmstepd/slurmstepd.c
+2
-2
2 additions, 2 deletions
src/slurmd/slurmstepd/slurmstepd.c
with
5 additions
and
8 deletions
src/slurmd/slurmd/req.c
+
3
−
6
View file @
847bd326
...
...
@@ -476,7 +476,7 @@ static int _send_slurmd_conf_lite (int fd, slurmd_conf_t *cf)
}
static
int
_send_slurmstepd_init
(
int
fd
,
u
int
16_t
type
,
void
*
req
,
_send_slurmstepd_init
(
int
fd
,
int
type
,
void
*
req
,
slurm_addr_t
*
cli
,
slurm_addr_t
*
self
,
hostset_t
step_hset
,
uint16_t
protocol_version
)
{
...
...
@@ -5481,7 +5481,7 @@ _add_starting_step(uint16_t type, void *req)
rc
=
SLURM_FAILURE
;
goto
fail
;
}
switch
(
type
)
{
switch
(
type
)
{
case
LAUNCH_BATCH_JOB
:
starting_step
->
job_id
=
((
batch_job_launch_msg_t
*
)
req
)
->
job_id
;
...
...
@@ -5504,6 +5504,7 @@ _add_starting_step(uint16_t type, void *req)
xfree
(
starting_step
);
goto
fail
;
}
if
(
!
list_append
(
conf
->
starting_steps
,
starting_step
))
{
error
(
"%s failed to allocate memory for list"
,
__func__
);
rc
=
SLURM_FAILURE
;
...
...
@@ -5537,10 +5538,6 @@ _remove_starting_step(uint16_t type, void *req)
job_id
=
((
launch_tasks_request_msg_t
*
)
req
)
->
job_id
;
step_id
=
((
launch_tasks_request_msg_t
*
)
req
)
->
job_step_id
;
break
;
case
REQUEST_LAUNCH_PROLOG
:
job_id
=
((
prolog_launch_msg_t
*
)
req
)
->
job_id
;
step_id
=
SLURM_EXTERN_CONT
;
break
;
default:
error
(
"%s called with an invalid type: %u"
,
__func__
,
type
);
rc
=
SLURM_FAILURE
;
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmstepd/slurmstepd.c
+
2
−
2
View file @
847bd326
...
...
@@ -466,7 +466,7 @@ _init_from_slurmd(int sock, char **argv,
slurm_msg_t_init
(
msg
);
msg
->
protocol_version
=
(
uint16_t
)
proto
;
switch
(
step_type
)
{
switch
(
step_type
)
{
case
LAUNCH_BATCH_JOB
:
msg
->
msg_type
=
REQUEST_BATCH_JOB_LAUNCH
;
break
;
...
...
@@ -474,7 +474,7 @@ _init_from_slurmd(int sock, char **argv,
msg
->
msg_type
=
REQUEST_LAUNCH_TASKS
;
break
;
default:
fatal
(
"Unrecognized launch RPC
"
);
fatal
(
"
%s:
Unrecognized launch RPC
(%d)"
,
__func__
,
step_type
);
break
;
}
if
(
unpack_msg
(
msg
,
buffer
)
==
SLURM_ERROR
)
...
...
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