Broken delete_file [patch]
delete_file is storing incorrect data on the msg_to_host database table. Variety and xml fields are empty. This is because the mth structure is cleared after these fields are set, on function delete_host_file. Patch attached.
Additionally, there is extra code to check if -host_id is 'all':
if(!strcmp(argv[++i], "all")) {
host_id = 0;
}
but some lines below the program exits if host_id == 0. Also, the scheduler has no special code to handle this. The messages will never be sent because host '0' will never communicate. I'm not sure how this would be fixed, since I don't know what was the intended behavior.
Patch