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
117a1df8
Commit
117a1df8
authored
7 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
Coverity CID 44801
parent
16047f0b
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/mysql/accounting_storage_mysql.c
+1
-5
1 addition, 5 deletions
...ugins/accounting_storage/mysql/accounting_storage_mysql.c
with
1 addition
and
5 deletions
src/plugins/accounting_storage/mysql/accounting_storage_mysql.c
+
1
−
5
View file @
117a1df8
...
@@ -2577,7 +2577,6 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
...
@@ -2577,7 +2577,6 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
char
*
query
=
NULL
;
char
*
query
=
NULL
;
MYSQL_RES
*
result
=
NULL
;
MYSQL_RES
*
result
=
NULL
;
MYSQL_ROW
row
;
MYSQL_ROW
row
;
bool
get_qos_count
=
0
;
ListIterator
itr
=
NULL
,
itr2
=
NULL
,
itr3
=
NULL
;
ListIterator
itr
=
NULL
,
itr2
=
NULL
,
itr3
=
NULL
;
char
*
rem_cluster
=
NULL
,
*
cluster_name
=
NULL
;
char
*
rem_cluster
=
NULL
,
*
cluster_name
=
NULL
;
slurmdb_update_object_t
*
object
=
NULL
;
slurmdb_update_object_t
*
object
=
NULL
;
...
@@ -2610,7 +2609,7 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
...
@@ -2610,7 +2609,7 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
if
(
!
object
->
objects
||
!
list_count
(
object
->
objects
))
if
(
!
object
->
objects
||
!
list_count
(
object
->
objects
))
continue
;
continue
;
/* We only care about clusters removed here. */
/* We only care about clusters removed here. */
switch
(
object
->
type
)
{
switch
(
object
->
type
)
{
case
SLURMDB_REMOVE_CLUSTER
:
case
SLURMDB_REMOVE_CLUSTER
:
itr3
=
list_iterator_create
(
object
->
objects
);
itr3
=
list_iterator_create
(
object
->
objects
);
while
((
rem_cluster
=
list_next
(
itr3
)))
{
while
((
rem_cluster
=
list_next
(
itr3
)))
{
...
@@ -2633,9 +2632,6 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
...
@@ -2633,9 +2632,6 @@ extern int acct_storage_p_commit(mysql_conn_t *mysql_conn, bool commit)
list_iterator_destroy
(
itr
);
list_iterator_destroy
(
itr
);
list_iterator_destroy
(
itr2
);
list_iterator_destroy
(
itr2
);
slurm_mutex_unlock
(
&
as_mysql_cluster_list_lock
);
slurm_mutex_unlock
(
&
as_mysql_cluster_list_lock
);
if
(
get_qos_count
)
_set_qos_cnt
(
mysql_conn
);
}
}
xfree
(
mysql_conn
->
pre_commit_query
);
xfree
(
mysql_conn
->
pre_commit_query
);
list_flush
(
mysql_conn
->
update_list
);
list_flush
(
mysql_conn
->
update_list
);
...
...
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