check for nonzero max event file size
authorMichal Voců <michal@ruk.cuni.cz>
Thu, 2 Apr 2009 09:09:41 +0000 (09:09 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Thu, 2 Apr 2009 09:09:41 +0000 (09:09 +0000)
org.glite.lb.logger/src/event_store.c

index 87f1fe8..318a0b6 100644 (file)
@@ -568,7 +568,7 @@ event_store_recover(struct event_store *es)
   }
 
   /* check the file size, rename it if it is bigger than max_store_size */
-  if(stbuf.st_size > max_store_size) {
+  if(max_store_size > 0 && stbuf.st_size > max_store_size) {
          event_store_rotate_file(es);
   }