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
4b2658a1
Commit
4b2658a1
authored
13 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Fix issues with unused variables on front-end systems
parent
6928a760
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmctld/proc_req.c
+9
-6
9 additions, 6 deletions
src/slurmctld/proc_req.c
with
9 additions
and
6 deletions
src/slurmctld/proc_req.c
+
9
−
6
View file @
4b2658a1
...
@@ -4047,12 +4047,15 @@ inline static void _slurm_rpc_accounting_update_msg(slurm_msg_t *msg)
...
@@ -4047,12 +4047,15 @@ inline static void _slurm_rpc_accounting_update_msg(slurm_msg_t *msg)
/* _slurm_rpc_reboot_nodes - process RPC to schedule nodes reboot */
/* _slurm_rpc_reboot_nodes - process RPC to schedule nodes reboot */
inline
static
void
_slurm_rpc_reboot_nodes
(
slurm_msg_t
*
msg
)
inline
static
void
_slurm_rpc_reboot_nodes
(
slurm_msg_t
*
msg
)
{
{
struct
node_record
*
node_ptr
;
int
rc
;
int
i
;
uid_t
uid
=
g_slurm_auth_get_uid
(
msg
->
auth_cred
,
NULL
);
uid_t
uid
=
g_slurm_auth_get_uid
(
msg
->
auth_cred
,
NULL
);
#ifndef HAVE_FRONT_END
int
i
;
struct
node_record
*
node_ptr
;
/* Locks: write node lock */
/* Locks: write node lock */
slurmctld_lock_t
node_write_lock
=
{
slurmctld_lock_t
node_write_lock
=
{
NO_LOCK
,
NO_LOCK
,
WRITE_LOCK
,
NO_LOCK
};
NO_LOCK
,
NO_LOCK
,
WRITE_LOCK
,
NO_LOCK
};
#endif
DEF_TIMERS
;
DEF_TIMERS
;
START_TIMER
;
START_TIMER
;
...
@@ -4063,8 +4066,7 @@ inline static void _slurm_rpc_reboot_nodes(slurm_msg_t * msg)
...
@@ -4063,8 +4066,7 @@ inline static void _slurm_rpc_reboot_nodes(slurm_msg_t * msg)
return
;
return
;
}
}
#ifdef HAVE_FRONT_END
#ifdef HAVE_FRONT_END
END_TIMER2
(
"_slurm_rpc_reboot_nodes"
);
rc
=
ESLURM_NOT_SUPPORTED
;
slurm_send_rc_msg
(
msg
,
ESLURM_NOT_SUPPORTED
);
#else
#else
/* do RPC call */
/* do RPC call */
lock_slurmctld
(
node_write_lock
);
lock_slurmctld
(
node_write_lock
);
...
@@ -4078,9 +4080,10 @@ inline static void _slurm_rpc_reboot_nodes(slurm_msg_t * msg)
...
@@ -4078,9 +4080,10 @@ inline static void _slurm_rpc_reboot_nodes(slurm_msg_t * msg)
want_nodes_reboot
=
true
;
want_nodes_reboot
=
true
;
}
}
unlock_slurmctld
(
node_write_lock
);
unlock_slurmctld
(
node_write_lock
);
END_TIMER2
(
"_slurm_rpc_reboot_nodes"
);
rc
=
SLURM_SUCCESS
;
slurm_send_rc_msg
(
msg
,
SLURM_SUCCESS
);
#endif
#endif
END_TIMER2
(
"_slurm_rpc_reboot_nodes"
);
slurm_send_rc_msg
(
msg
,
rc
);
}
}
inline
static
void
_slurm_rpc_accounting_first_reg
(
slurm_msg_t
*
msg
)
inline
static
void
_slurm_rpc_accounting_first_reg
(
slurm_msg_t
*
msg
)
...
...
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