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
e9064d42
Commit
e9064d42
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.3'
parents
eb21dc61
d53b7c26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
+2
-5
2 additions, 5 deletions
...accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
with
2 additions
and
5 deletions
src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
+
2
−
5
View file @
e9064d42
...
@@ -202,9 +202,6 @@ static void *_set_db_inx_thread(void *no_data)
...
@@ -202,9 +202,6 @@ static void *_set_db_inx_thread(void *no_data)
{
{
struct
job_record
*
job_ptr
=
NULL
;
struct
job_record
*
job_ptr
=
NULL
;
ListIterator
itr
;
ListIterator
itr
;
/* Read lock on jobs */
slurmctld_lock_t
job_read_lock
=
{
NO_LOCK
,
READ_LOCK
,
NO_LOCK
,
NO_LOCK
};
/* Write lock on jobs */
/* Write lock on jobs */
slurmctld_lock_t
job_write_lock
=
slurmctld_lock_t
job_write_lock
=
{
NO_LOCK
,
WRITE_LOCK
,
NO_LOCK
,
NO_LOCK
};
{
NO_LOCK
,
WRITE_LOCK
,
NO_LOCK
,
NO_LOCK
};
...
@@ -235,7 +232,7 @@ static void *_set_db_inx_thread(void *no_data)
...
@@ -235,7 +232,7 @@ static void *_set_db_inx_thread(void *no_data)
* job db_index here we use a read lock since the
* job db_index here we use a read lock since the
* data isn't that sensitive and will only be updated
* data isn't that sensitive and will only be updated
* later in this function. */
* later in this function. */
lock_slurmctld
(
job_
read
_lock
);
lock_slurmctld
(
job_
write
_lock
);
itr
=
list_iterator_create
(
job_list
);
itr
=
list_iterator_create
(
job_list
);
while
((
job_ptr
=
list_next
(
itr
)))
{
while
((
job_ptr
=
list_next
(
itr
)))
{
if
(
!
job_ptr
->
db_index
)
{
if
(
!
job_ptr
->
db_index
)
{
...
@@ -275,7 +272,7 @@ static void *_set_db_inx_thread(void *no_data)
...
@@ -275,7 +272,7 @@ static void *_set_db_inx_thread(void *no_data)
}
}
}
}
list_iterator_destroy
(
itr
);
list_iterator_destroy
(
itr
);
unlock_slurmctld
(
job_
read
_lock
);
unlock_slurmctld
(
job_
write
_lock
);
if
(
local_job_list
)
{
if
(
local_job_list
)
{
slurmdbd_msg_t
req
,
resp
;
slurmdbd_msg_t
req
,
resp
;
...
...
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