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

delete partition if not in bgl_list

parent f1ee159e
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,16 @@ extern int update_partition_list()
bgl_record = find_bgl_record(name);
if(bgl_record == NULL) {
error("Partition %s not found on bgl_list", name);
error("Partition %s not found in bgl_list "
"removing from database", name);
term_jobs_on_part(name);
rc = rm_remove_partition(name);
if (rc != STATUS_OK) {
error("rm_remove_partition(%s): %s",
name,
bgl_err_str(rc));
} else
debug("done\n");
continue;
}
......
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