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
5c5466c8
Commit
5c5466c8
authored
4 years ago
by
Dominik Bartkiewicz
Committed by
Danny Auble
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix race between addto_update_list() and _commit_handler()
Bug 10027
parent
0ff53b2c
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
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/plugins/accounting_storage/common/common_as.c
+3
-2
3 additions, 2 deletions
src/plugins/accounting_storage/common/common_as.c
with
5 additions
and
2 deletions
NEWS
+
2
−
0
View file @
5c5466c8
...
...
@@ -76,6 +76,8 @@ documents those changes that are of interest to users and administrators.
-- MySQL - Stop steps from printing when outside time range.
-- Fixed kmem limit calculation to use MaxKmemPercent correctly.
-- Fix initialization of cpuset.mems/cpus on uid cgroup subdir.
-- MySQL - Remove potential race condition when sending updates to a cluster
and commit_delay used.
* Changes in Slurm 20.02.5
==========================
...
...
This diff is collapsed.
Click to expand it.
src/plugins/accounting_storage/common/common_as.c
+
3
−
2
View file @
5c5466c8
...
...
@@ -181,11 +181,9 @@ extern int addto_update_list(List update_list, slurmdb_update_type_t type,
update_object
=
xmalloc
(
sizeof
(
slurmdb_update_object_t
));
list_append
(
update_list
,
update_object
);
update_object
->
type
=
type
;
list_sort
(
update_list
,
(
ListCmpF
)
_sort_update_object_dec
);
switch
(
type
)
{
case
SLURMDB_MODIFY_USER
:
...
...
@@ -279,11 +277,14 @@ extern int addto_update_list(List update_list, slurmdb_update_type_t type,
return
SLURM_SUCCESS
;
case
SLURMDB_UPDATE_NOTSET
:
default:
slurmdb_destroy_update_object
(
update_object
);
error
(
"unknown type set in update_object: %d"
,
type
);
return
SLURM_ERROR
;
}
debug4
(
"XXX: update object with type %d added"
,
type
);
list_append
(
update_object
->
objects
,
object
);
list_append
(
update_list
,
update_object
);
list_sort
(
update_list
,
(
ListCmpF
)
_sort_update_object_dec
);
return
SLURM_SUCCESS
;
}
...
...
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