int
event_store_recover(struct event_store *es)
{
- struct event_queue *eq_l = NULL, *eq_b;
+ struct event_queue *eq_l = NULL, *eq_b = NULL;
struct server_msg *msg;
char *event_s;
int fd, ret;
#else
/* find bookkepping server queue */
eq_b = queue_list_get(es->job_id_s);
-#endif
if(eq_b == NULL)
return(-1);
+#endif
#if !defined(IL_NOTIFICATIONS)
/* get log server queue */
#if defined(IL_NOTIFICATIONS)
/* if there are no data to send, do not send anything
(messsage was just to change the delivery address) */
- if(msg->len == 0)
+ /* CORRECTION - let the message pass through the output queue
+ to commit it properly and keep event_store in sync */
+ /* if(msg->len == 0)
return(0);
+ */
#endif
/* avoid losing signal to thread */
event_queue_cond_lock(eq);