Dont bother with fsm-level digest statistics
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Apr 2012 12:33:40 +0000 (15:33 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Apr 2012 12:36:15 +0000 (15:36 +0300)
- Most of fsm doesnt need the actual transaction set for anything "real"
  and dragging it around as a mere statistics collector seems
  pretty dumb. If we want better statistics, we better come up with
  a saner way to gather them.

lib/fsm.c

index ba25f43..3078c37 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -804,8 +804,6 @@ static int expandRegular(FSM_t fsm, rpmpsm psm, rpmcpio_t archive)
 exit:
     if (wfd) {
        int myerrno = errno;
-       rpmswAdd(rpmtsOp(fsmGetTs(fsm), RPMTS_OP_DIGEST),
-                fdOp(wfd, FDSTAT_DIGEST));
        Fclose(wfd);
        errno = myerrno;
     }
@@ -956,8 +954,6 @@ exit:
     if (rfd) {
        /* preserve any prior errno across close */
        int myerrno = errno;
-       rpmswAdd(rpmtsOp(fsmGetTs(fsm), RPMTS_OP_DIGEST),
-                fdOp(rfd, FDSTAT_DIGEST));
        Fclose(rfd);
        errno = myerrno;
     }