From 8ecfa553657114252a51e86b48699c1f15fb95dc Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sun, 7 Jan 2001 20:32:22 +0000 Subject: [PATCH] After N calls(which does a checkpoint()), reset the counter. --- ChangeLog | 5 +++++ lib/dbmodify.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c554452a..e02b04dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jan 7 14:31:38 CST 2001 Adam Heath + + * lib/dbmodify.c: After N calls(which does a checkpoint()), reset + the counter. + Sun Jan 7 14:27:57 CST 2001 Adam Heath * include/dpkg-db.h: Forgot the status-pipe struct. diff --git a/lib/dbmodify.c b/lib/dbmodify.c index 7ea2d480..97f4a3bb 100644 --- a/lib/dbmodify.c +++ b/lib/dbmodify.c @@ -260,7 +260,10 @@ void modstatdb_note(struct pkginfo *pkg) { nextupdate++; - if (nextupdate > MAXUPDATES) checkpoint(); + if (nextupdate > MAXUPDATES) { + checkpoint(); + nextupdate= 0; + } createimptmp(); -- 2.39.5