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
cadcac5b
Commit
cadcac5b
authored
10 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
stubs for timers
parent
d6f79e54
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/slurmdbd/proc_req.c
+9
-2
9 additions, 2 deletions
src/slurmdbd/proc_req.c
with
9 additions
and
2 deletions
src/slurmdbd/proc_req.c
+
9
−
2
View file @
cadcac5b
...
@@ -3598,6 +3598,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3598,6 +3598,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
ListIterator
itr
=
NULL
;
ListIterator
itr
=
NULL
;
dbd_job_start_msg_t
*
job_start_msg
;
dbd_job_start_msg_t
*
job_start_msg
;
dbd_id_rc_msg_t
*
id_rc_msg
;
dbd_id_rc_msg_t
*
id_rc_msg
;
/* DEF_TIMERS; */
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_SEND_MULT_JOB_START message from invalid uid"
;
comment
=
"DBD_SEND_MULT_JOB_START message from invalid uid"
;
...
@@ -3620,7 +3621,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3620,7 +3621,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
}
}
list_msg
.
my_list
=
list_create
(
slurmdbd_free_id_rc_msg
);
list_msg
.
my_list
=
list_create
(
slurmdbd_free_id_rc_msg
);
START_TIMER
;
itr
=
list_iterator_create
(
get_msg
->
my_list
);
itr
=
list_iterator_create
(
get_msg
->
my_list
);
while
((
job_start_msg
=
list_next
(
itr
)))
{
while
((
job_start_msg
=
list_next
(
itr
)))
{
id_rc_msg
=
xmalloc
(
sizeof
(
dbd_id_rc_msg_t
));
id_rc_msg
=
xmalloc
(
sizeof
(
dbd_id_rc_msg_t
));
...
@@ -3629,6 +3630,9 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3629,6 +3630,9 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
_process_job_start
(
slurmdbd_conn
,
job_start_msg
,
id_rc_msg
);
_process_job_start
(
slurmdbd_conn
,
job_start_msg
,
id_rc_msg
);
}
}
list_iterator_destroy
(
itr
);
list_iterator_destroy
(
itr
);
/* END_TIMER; */
/* info("%d multi job took %s", */
/* list_count(get_msg->my_list), TIME_STR); */
slurmdbd_free_list_msg
(
get_msg
);
slurmdbd_free_list_msg
(
get_msg
);
...
@@ -3652,6 +3656,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3652,6 +3656,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
ListIterator
itr
=
NULL
;
ListIterator
itr
=
NULL
;
Buf
req_buf
=
NULL
,
ret_buf
=
NULL
;
Buf
req_buf
=
NULL
,
ret_buf
=
NULL
;
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
/* DEF_TIMERS; */
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_SEND_MULT_MSG message from invalid uid"
;
comment
=
"DBD_SEND_MULT_MSG message from invalid uid"
;
...
@@ -3674,7 +3679,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3674,7 +3679,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
}
}
list_msg
.
my_list
=
list_create
(
slurmdbd_free_buffer
);
list_msg
.
my_list
=
list_create
(
slurmdbd_free_buffer
);
/* START_TIMER; */
itr
=
list_iterator_create
(
get_msg
->
my_list
);
itr
=
list_iterator_create
(
get_msg
->
my_list
);
while
((
req_buf
=
list_next
(
itr
)))
{
while
((
req_buf
=
list_next
(
itr
)))
{
ret_buf
=
NULL
;
ret_buf
=
NULL
;
...
@@ -3686,6 +3691,8 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3686,6 +3691,8 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
break
;
break
;
}
}
list_iterator_destroy
(
itr
);
list_iterator_destroy
(
itr
);
/* END_TIMER; */
/* info("%d multi took %s", list_count(get_msg->my_list), TIME_STR); */
slurmdbd_free_list_msg
(
get_msg
);
slurmdbd_free_list_msg
(
get_msg
);
...
...
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