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

Revert "Remove potential memcpy of same variables."

This reverts commit 7bdf6917.

I believe c4545110 should fix this.  I have verified this doesn't
happen with just this commit.
parent 1ed53007
No related branches found
No related tags found
No related merge requests found
...@@ -771,15 +771,13 @@ static int _set_assoc_parent_and_user(slurmdb_assoc_rec_t *assoc, ...@@ -771,15 +771,13 @@ static int _set_assoc_parent_and_user(slurmdb_assoc_rec_t *assoc,
/* set up new root since if running off cache the /* set up new root since if running off cache the
total usage for the cluster doesn't get set up again */ total usage for the cluster doesn't get set up again */
if (last_root) { if (last_root) {
int i;
assoc_mgr_root_assoc->usage->usage_raw = assoc_mgr_root_assoc->usage->usage_raw =
last_root->usage->usage_raw; last_root->usage->usage_raw;
assoc_mgr_root_assoc->usage->usage_norm = assoc_mgr_root_assoc->usage->usage_norm =
last_root->usage->usage_norm; last_root->usage->usage_norm;
for (i=0; i<g_tres_count; i++) memcpy(assoc_mgr_root_assoc->usage->usage_tres_raw,
assoc_mgr_root_assoc->usage->usage_tres_raw[i] = last_root->usage->usage_tres_raw,
last_root->usage->usage_tres_raw[i]; sizeof(long double) * g_tres_count);
} }
} }
......
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