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
4cd4e018
Commit
4cd4e018
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Fix trigger state restore from 2.3
parent
0fe12aba
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/trigger_mgr.c
+4
-4
4 additions, 4 deletions
src/slurmctld/trigger_mgr.c
with
4 additions
and
4 deletions
src/slurmctld/trigger_mgr.c
+
4
−
4
View file @
4cd4e018
...
...
@@ -74,8 +74,7 @@
/* Change TRIGGER_STATE_VERSION value when changing the state save format */
#define TRIGGER_STATE_VERSION "VER004"
#define TRIGGER_2_4_STATE_VERSION "VER004"
/* SLURM version 2.4 */
#define TRIGGER_2_2_STATE_VERSION "VER003"
/* SLURM version 2.2 */
#define TRIGGER_2_1_STATE_VERSION "VER002"
/* SLURM version 2.1 */
#define TRIGGER_2_3_STATE_VERSION "VER003"
/* SLURM version 2.3 */
List
trigger_list
;
uint32_t
next_trigger_id
=
1
;
...
...
@@ -748,7 +747,7 @@ static int _load_trigger_state(Buf buffer, uint16_t protocol_version)
if
(
trig_ptr
->
res_id
)
trig_ptr
->
orig_res_id
=
xstrdup
(
trig_ptr
->
res_id
);
trig_ptr
->
orig_time
=
trig_ptr
->
trig_time
;
slurm_mutex_lock
(
&
trigger_mutex
);
if
(
trigger_list
==
NULL
)
trigger_list
=
list_create
(
_trig_del
);
...
...
@@ -931,7 +930,8 @@ extern int trigger_state_restore(void)
if
(
ver_str
)
{
if
(
!
strcmp
(
ver_str
,
TRIGGER_STATE_VERSION
))
{
protocol_version
=
SLURM_PROTOCOL_VERSION
;
}
}
else
if
(
!
strcmp
(
ver_str
,
TRIGGER_2_3_STATE_VERSION
))
protocol_version
=
SLURM_2_3_PROTOCOL_VERSION
;
}
if
(
protocol_version
==
(
uint16_t
)
NO_VAL
)
{
...
...
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