/* we are removing last priority message */
eq->tail_ems = NULL;
}
+
+ eq->mark_this = NULL;
+ eq->mark_prev = NULL;
#else
el = eq->head;
if(el == NULL) {
}
source_prev = &(eq_s->head);
p = *source_prev;
+ eq_s = NULL;
while(p) {
if(strcmp(p->msg->job_id_s, notif_id) == 0) {
il_log(LOG_DEBUG, " moving event with notif id %s from %s to %s\n",
p->prev = NULL;
*dest_tail = p;
dest_tail = &(p->prev);
+ eq_d->tail = p;
} else {
/* free the message */
server_msg_free(p->msg);
} else {
/* message stays */
source_prev = &(p->prev);
+ eq_s->tail = p;
}
p = *source_prev;
}
msg->job_id_s = edg_wll_NotifIdUnparse(notif_event->notification.notifId);
if(notif_event->notification.jobstat &&
(strlen(notif_event->notification.jobstat) > 0)) {
- /* remember to add event separator to the length */
- msg->ev_len = strlen(event) + 1;
msg->len = create_msg(event, &msg->msg, &msg->receipt_to);
}
edg_wll_FreeEvent(notif_event);
return(-1);
}
#else
- /* remember to add event separator to the length */
- msg->ev_len = strlen(event) + 1;
msg->len = create_msg(event, &msg->msg, &msg->receipt_to);
if(msg->len < 0) {
return(-1);
}
msg->job_id_s = edg_wll_GetJobId(event);
#endif
+ /* remember to add event separator to the length */
+ msg->ev_len = strlen(event) + 1;
+
if(msg->job_id_s == NULL) {
set_error(IL_LBAPI, EDG_WLL_ERROR_PARSE_BROKEN_ULM, "server_msg_init: error getting id");
return(-1);