fix for SB#77365
authorMichal Voců <michal@ruk.cuni.cz>
Thu, 27 Jan 2011 14:24:56 +0000 (14:24 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Thu, 27 Jan 2011 14:24:56 +0000 (14:24 +0000)
org.glite.lb.logger/src/send_event.c

index c1e797a..78c68fa 100644 (file)
@@ -351,15 +351,19 @@ event_queue_send(struct event_queue *eq)
     case LB_NOMEM:
            /* NOT USED: case LB_SYS:  */
            /* NOT USED: case LB_AUTH: */
-       case LB_PERM:
-       case LB_DBERR:
-      /* non fatal errors (for us) */
-      eq->timeout = TIMEOUT;
-      return(0);
+
+    case LB_DBERR:
+           /* check minor code */
+           if(!(ENOENT == code_min)) {
+                   /* non fatal errors (for us) */
+                   eq->timeout = TIMEOUT;
+                   return(0);
+           }
        
     case LB_OK:
-      /* event succesfully delivered */
+      /* event 'succesfully' delivered */
       
+    case LB_PERM:
     default: /* LB_PROTO */
       /* the event was not accepted by the server */
       /* update the event pointer */