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
3485d165
Commit
3485d165
authored
11 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Change errno value
parent
9d9011cf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
slurm/slurm_errno.h
+1
-1
1 addition, 1 deletion
slurm/slurm_errno.h
src/common/slurm_errno.c
+2
-2
2 additions, 2 deletions
src/common/slurm_errno.c
src/plugins/accounting_storage/mysql/as_mysql_resource.c
+2
-2
2 additions, 2 deletions
src/plugins/accounting_storage/mysql/as_mysql_resource.c
with
5 additions
and
5 deletions
slurm/slurm_errno.h
+
1
−
1
View file @
3485d165
...
...
@@ -261,7 +261,7 @@ enum {
ESLURM_CLUSTER_DELETED
,
ESLURM_ONE_CHANGE
,
ESLURM_BAD_NAME
,
ESLURM_OVER_
USAG
E
,
ESLURM_OVER_
ALLOCAT
E
,
/* plugin and custom errors */
ESLURM_MISSING_TIME_LIMIT
=
8000
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_errno.c
+
2
−
2
View file @
3485d165
...
...
@@ -396,8 +396,8 @@ static slurm_errtab_t slurm_errtab[] = {
"Can only change one at a time"
},
{
ESLURM_BAD_NAME
,
"Unacceptable name given. (No '.' in name allowed)"
},
{
ESLURM_OVER_
USAG
E
,
"
Request would go over availabl
e
a
mo
unt of usag
e"
},
{
ESLURM_OVER_
ALLOCAT
E
,
"
You can not allocat
e mo
re than 100% of a resourc
e"
},
/* plugin and custom errors */
{
ESLURM_MISSING_TIME_LIMIT
,
...
...
This diff is collapsed.
Click to expand it.
src/plugins/accounting_storage/mysql/as_mysql_resource.c
+
2
−
2
View file @
3485d165
...
...
@@ -520,7 +520,7 @@ static int _add_clus_res(mysql_conn_t *mysql_conn, slurmdb_res_rec_t *res,
while
((
object
=
list_next
(
itr
)))
{
res
->
percent_used
+=
object
->
percent_allowed
;
if
(
res
->
percent_used
>
100
)
{
rc
=
ESLURM_OVER_
USAG
E
;
rc
=
ESLURM_OVER_
ALLOCAT
E
;
debug3
(
"Adding a new cluster with %u%% allowed to "
"resource %s@%s would put the usage at %u%%, "
"(which is over 100%%). Please redo your math "
...
...
@@ -1132,7 +1132,7 @@ extern List as_mysql_modify_res(mysql_conn_t *mysql_conn, uint32_t uid,
xfree
(
name_char
);
xfree
(
clus_char
);
FREE_NULL_LIST
(
ret_list
);
errno
=
ESLURM_OVER_
USAG
E
;
errno
=
ESLURM_OVER_
ALLOCAT
E
;
return
NULL
;
}
...
...
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