]> err.no Git - dpkg/commitdiff
After N calls(which does a checkpoint()), reset the counter.
authorAdam Heath <doogie@debian.org>
Sun, 7 Jan 2001 20:32:22 +0000 (20:32 +0000)
committerAdam Heath <doogie@debian.org>
Sun, 7 Jan 2001 20:32:22 +0000 (20:32 +0000)
ChangeLog
lib/dbmodify.c

index c554452ab36ecc6ff7f102bea4aed9bc7257a1e6..e02b04dd40dc92d9b4bdbd4d7c894637dbf7491c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan  7 14:31:38 CST 2001 Adam Heath <doogie@debian.org>
+
+  * lib/dbmodify.c: After N calls(which does a checkpoint()), reset
+    the counter.
+
 Sun Jan  7 14:27:57 CST 2001 Adam Heath <doogie@debian.org>
 
   * include/dpkg-db.h:  Forgot the status-pipe struct.
index 7ea2d4806c39ea61d7a5912ac70b89fc7857ceda..97f4a3bbd31ac883e1ea9d531bccafbccd2a84b0 100644 (file)
@@ -260,7 +260,10 @@ void modstatdb_note(struct pkginfo *pkg) {
 
   nextupdate++;  
 
-  if (nextupdate > MAXUPDATES) checkpoint();
+  if (nextupdate > MAXUPDATES) {
+    checkpoint();
+    nextupdate= 0;
+  }
 
   createimptmp();