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
ba1caf24
Commit
ba1caf24
authored
16 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r15722:15724
https://eris.llnl.gov/svn/slurm/branches/slurm-1.3
parent
306e908e
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/common/assoc_mgr.c
+21
-11
21 additions, 11 deletions
src/common/assoc_mgr.c
with
21 additions
and
11 deletions
src/common/assoc_mgr.c
+
21
−
11
View file @
ba1caf24
...
...
@@ -78,6 +78,25 @@ static int _sort_assoc_dec(acct_association_rec_t *assoc_a,
return
-
1
;
}
static
int
_clear_used_info
(
acct_association_rec_t
*
assoc
)
{
if
(
!
assoc
)
return
SLURM_ERROR
;
assoc
->
grp_used_cpu_mins
=
0
;
assoc
->
grp_used_cpus
=
0
;
assoc
->
grp_used_nodes
=
0
;
assoc
->
grp_used_wall
=
0
;
assoc
->
used_jobs
=
0
;
assoc
->
used_submit_jobs
=
0
;
/* do not reset used_shares if you need to reset it do it
* else where since sometimes we call this and do not want
* shares reset */
return
SLURM_SUCCESS
;
}
static
int
_grab_parents_qos
(
acct_association_rec_t
*
assoc
)
{
acct_association_rec_t
*
parent_assoc
=
NULL
;
...
...
@@ -1436,8 +1455,7 @@ extern int assoc_mgr_update_assocs(acct_update_object_t *update)
changed we could have different usage
*/
if
(
!
object
->
user
)
{
object
->
used_jobs
=
0
;
object
->
used_submit_jobs
=
0
;
_clear_used_info
(
object
);
object
->
used_shares
=
0
;
}
_set_assoc_parent_and_user
(
...
...
@@ -1732,15 +1750,7 @@ extern void assoc_mgr_clear_used_info(void)
slurm_mutex_lock
(
&
assoc_mgr_association_lock
);
itr
=
list_iterator_create
(
assoc_mgr_association_list
);
while
((
found_assoc
=
list_next
(
itr
)))
{
found_assoc
->
grp_used_cpu_mins
=
0
;
found_assoc
->
grp_used_cpus
=
0
;
found_assoc
->
grp_used_nodes
=
0
;
found_assoc
->
grp_used_wall
=
0
;
found_assoc
->
used_jobs
=
0
;
found_assoc
->
used_submit_jobs
=
0
;
found_assoc
->
used_submit_jobs
=
0
;
_clear_used_info
(
found_assoc
);
}
list_iterator_destroy
(
itr
);
slurm_mutex_unlock
(
&
assoc_mgr_association_lock
);
...
...
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