]> git.sur5r.net Git - bacula/bacula/commitdiff
Clear delta sequence when not using in plugin
authorKern Sibbald <kern@sibbald.com>
Sat, 20 Nov 2010 10:53:08 +0000 (11:53 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 25 Nov 2010 13:55:52 +0000 (14:55 +0100)
bacula/src/filed/fd_plugins.c

index 4120bcf2f1ef549a3d83ac472a211a020696fcb5..335d66a283826ffd0b65509aba0e01eceee1e855 100644 (file)
@@ -400,7 +400,8 @@ int plugin_save(JCR *jcr, FF_PKT *ff_pkt, bool top_level)
                ff_pkt->flags |= FO_DELTA;
                ff_pkt->delta_seq++;          /* make new delta sequence number */
             } else {
-               ff_pkt->flags &= ~FO_DELTA;
+               ff_pkt->flags &= ~FO_DELTA;   /* clean delta sequence number */
+               ff_pkt->delta_seq = 0;
             }
          }