Skip to content
Snippets Groups Projects
Commit aeeadc29 authored by Nicolas Joly's avatar Nicolas Joly Committed by Danny Auble
Browse files

Fix for bad logic in commit 686cd117

parent b1c5716d
No related branches found
No related tags found
No related merge requests found
...@@ -410,20 +410,15 @@ extern int read_slurmdbd_conf(void) ...@@ -410,20 +410,15 @@ extern int read_slurmdbd_conf(void)
"TrackSlurmctldDown", tbl)) "TrackSlurmctldDown", tbl))
slurmdbd_conf->track_ctld = false; slurmdbd_conf->track_ctld = false;
if (a_events && if (a_events && slurmdbd_conf->purge_event)
SLURMDB_PURGE_ARCHIVE_SET(slurmdbd_conf->purge_event))
slurmdbd_conf->purge_event |= SLURMDB_PURGE_ARCHIVE; slurmdbd_conf->purge_event |= SLURMDB_PURGE_ARCHIVE;
if (a_jobs && if (a_jobs && slurmdbd_conf->purge_job)
SLURMDB_PURGE_ARCHIVE_SET(slurmdbd_conf->purge_job))
slurmdbd_conf->purge_job |= SLURMDB_PURGE_ARCHIVE; slurmdbd_conf->purge_job |= SLURMDB_PURGE_ARCHIVE;
if (a_resv && if (a_resv && slurmdbd_conf->purge_resv)
SLURMDB_PURGE_ARCHIVE_SET(slurmdbd_conf->purge_resv))
slurmdbd_conf->purge_resv |= SLURMDB_PURGE_ARCHIVE; slurmdbd_conf->purge_resv |= SLURMDB_PURGE_ARCHIVE;
if (a_steps && if (a_steps && slurmdbd_conf->purge_step)
SLURMDB_PURGE_ARCHIVE_SET(slurmdbd_conf->purge_step))
slurmdbd_conf->purge_step |= SLURMDB_PURGE_ARCHIVE; slurmdbd_conf->purge_step |= SLURMDB_PURGE_ARCHIVE;
if (a_suspend && if (a_suspend && slurmdbd_conf->purge_suspend)
SLURMDB_PURGE_ARCHIVE_SET(slurmdbd_conf->purge_suspend))
slurmdbd_conf->purge_suspend |= SLURMDB_PURGE_ARCHIVE; slurmdbd_conf->purge_suspend |= SLURMDB_PURGE_ARCHIVE;
s_p_hashtbl_destroy(tbl); s_p_hashtbl_destroy(tbl);
......
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