]> sourceware.org Git - systemtap.git/commitdiff
Uncomment the seek-to-end-of-log-file code in pmdalogger.
authorNathan Scott <nathans@debian.org>
Mon, 2 May 2011 07:27:17 +0000 (17:27 +1000)
committerNathan Scott <nathans@debian.org>
Mon, 2 May 2011 07:27:17 +0000 (17:27 +1000)
For real world uses, we need to do this so that even moderately
sized log files are not read from start to end whenever the PMDA
starts up - wastes CPU cycles and (re)generates events that may
have happened long ago.

pcp/src/pmdas/logger/event.c

index 281a33dfd14cf9ed56f1ab94ba0ec76ccf6600f2..282ea35c4d0d2330e42758d1930c993ef8d7bccc 100644 (file)
@@ -163,7 +163,7 @@ event_init(pmdaInterface *dispatch, struct LogfileData *logfiles,
        }
 
        /* Skip to the end. */
-       //(void)lseek(file_data_tab[i].fd, 0, SEEK_END);
+       (void)lseek(file_data_tab[i].fd, 0, SEEK_END);
     }
 }
 
This page took 0.028499 seconds and 5 git commands to generate.