Skip to content
Snippets Groups Projects
Commit 3ff436c0 authored by Danny Auble's avatar Danny Auble
Browse files

MYSQL - Fix issue when rerolling monthly data to work off correct time

period.  This would only hit you if you rerolled a 15.08 prior to this
commit.
parent f95a794b
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ documents those changes that are of interest to users and administrators.
-- Save the ClusterName to a file in SaveStateLocation, and use that to
verify the state directory belongs to the given cluster at startup to avoid
corruption from multiple clusters attempting to share a state directory.
-- MYSQL - Fix issue when rerolling monthly data to work off correct time
period. This would only hit you if you rerolled a 15.08 prior to this
commit.
* Changes in Slurm 15.08.7
==========================
......
......@@ -1666,6 +1666,7 @@ extern int as_mysql_nonhour_rollup(mysql_conn_t *mysql_conn,
cluster_name,
run_month ? assoc_day_table : assoc_hour_table,
curr_end, curr_start, now);
/* We group on deleted here so if there are no entries
we don't get an error, just nothing is returned.
Else we get a bunch of NULL's
......@@ -1734,7 +1735,12 @@ extern int as_mysql_nonhour_rollup(mysql_conn_t *mysql_conn,
start_tm.tm_sec = 0;
start_tm.tm_min = 0;
start_tm.tm_hour = 0;
start_tm.tm_mday++;
if (run_month) {
start_tm.tm_mday = 1;
start_tm.tm_mon++;
} else {
start_tm.tm_mday++;
}
start_tm.tm_isdst = -1;
curr_end = slurm_mktime(&start_tm);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment