Permalink
Browse files

Change errno value

  • Loading branch information...
dannyauble committed Feb 24, 2014
1 parent 9d9011c commit 3485d16586bf0ccbe786680ab11863bad9438b5e
Showing with 5 additions and 5 deletions.
  1. +1 −1 slurm/slurm_errno.h
  2. +2 −2 src/common/slurm_errno.c
  3. +2 −2 src/plugins/accounting_storage/mysql/as_mysql_resource.c
View
@@ -261,7 +261,7 @@ enum {
ESLURM_CLUSTER_DELETED,
ESLURM_ONE_CHANGE,
ESLURM_BAD_NAME,
- ESLURM_OVER_USAGE,
+ ESLURM_OVER_ALLOCATE,
/* plugin and custom errors */
ESLURM_MISSING_TIME_LIMIT = 8000
View
@@ -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_USAGE,
- "Request would go over available amount of usage" },
+ { ESLURM_OVER_ALLOCATE,
+ "You can not allocate more than 100% of a resource" },
/* plugin and custom errors */
{ ESLURM_MISSING_TIME_LIMIT,
@@ -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_USAGE;
+ rc = ESLURM_OVER_ALLOCATE;
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_USAGE;
+ errno = ESLURM_OVER_ALLOCATE;
return NULL;
}

0 comments on commit 3485d16

Please sign in to comment.