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
8ebfabc9
Commit
8ebfabc9
authored
16 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
fix for perlapi for getting jobs
parent
5d05e072
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contribs/perlapi/libslurm-perl/msg.h
+13
-10
13 additions, 10 deletions
contribs/perlapi/libslurm-perl/msg.h
src/slurmctld/proc_req.c
+3
-3
3 additions, 3 deletions
src/slurmctld/proc_req.c
with
16 additions
and
13 deletions
contribs/perlapi/libslurm-perl/msg.h
+
13
−
10
View file @
8ebfabc9
...
...
@@ -57,9 +57,12 @@ inline static int av_store_int(AV* av, int index, int val)
*/
inline
static
int
hv_store_charp
(
HV
*
hv
,
const
char
*
key
,
charp
val
)
{
SV
*
sv
=
newSVpv
(
val
,
0
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SV
*
sv
=
NULL
;
if
(
val
)
sv
=
newSVpv
(
val
,
0
);
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -73,7 +76,7 @@ inline static int hv_store_uint32_t(HV* hv, const char *key, uint32_t val)
{
SV
*
sv
=
newSVuv
(
val
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -87,7 +90,7 @@ inline static int hv_store_uint16_t(HV* hv, const char *key, uint16_t val)
{
SV
*
sv
=
newSVuv
(
val
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -101,7 +104,7 @@ inline static int hv_store_uint8_t(HV* hv, const char *key, uint8_t val)
{
SV
*
sv
=
newSVuv
(
val
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -114,7 +117,7 @@ inline static int hv_store_int(HV* hv, const char *key, int val)
{
SV
*
sv
=
newSViv
(
val
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -126,7 +129,7 @@ inline static int hv_store_int(HV* hv, const char *key, int val)
*/
inline
static
int
hv_store_bool
(
HV
*
hv
,
const
char
*
key
,
bool
val
)
{
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
(
val
?
&
PL_sv_yes
:
&
PL_sv_no
),
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
(
val
?
&
PL_sv_yes
:
&
PL_sv_no
),
0
)
==
NULL
)
{
return
-
1
;
}
return
0
;
...
...
@@ -139,7 +142,7 @@ inline static int hv_store_time_t(HV* hv, const char *key, time_t val)
{
SV
*
sv
=
newSVuv
(
val
);
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
SvREFCNT_dec
(
sv
);
return
-
1
;
}
...
...
@@ -151,7 +154,7 @@ inline static int hv_store_time_t(HV* hv, const char *key, time_t val)
*/
inline
static
int
hv_store_sv
(
HV
*
hv
,
const
char
*
key
,
SV
*
sv
)
{
if
(
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
if
(
!
key
||
hv_store
(
hv
,
key
,
(
I32
)
strlen
(
key
),
sv
,
0
)
==
NULL
)
{
return
-
1
;
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/proc_req.c
+
3
−
3
View file @
8ebfabc9
...
...
@@ -727,8 +727,8 @@ static void _slurm_rpc_dump_jobs(slurm_msg_t * msg)
g_slurm_auth_get_uid
(
msg
->
auth_cred
,
NULL
));
unlock_slurmctld
(
job_read_lock
);
END_TIMER2
(
"_slurm_rpc_dump_jobs"
);
info
(
"_slurm_rpc_dump_jobs, size=%d %s"
,
dump_size
,
TIME_STR
);
/*
info("_slurm_rpc_dump_jobs, size=%d %s",
*/
/*
dump_size, TIME_STR);
*/
/* init response_msg structure */
slurm_msg_t_init
(
&
response_msg
);
...
...
@@ -765,7 +765,7 @@ static void _slurm_rpc_dump_job_single(slurm_msg_t * msg)
g_slurm_auth_get_uid
(
msg
->
auth_cred
,
NULL
));
unlock_slurmctld
(
job_read_lock
);
END_TIMER2
(
"_slurm_rpc_dump_job_single"
);
info
(
"_slurm_rpc_dump_job_single, size=%d %s"
,
dump_size
,
TIME_STR
);
/*
info("_slurm_rpc_dump_job_single, size=%d %s",dump_size, TIME_STR);
*/
/* init response_msg structure */
if
(
rc
!=
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