summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Mazieres <dm@uun.org>2016-09-14 19:24:07 -0700
committerDavid Mazieres <dm@uun.org>2016-09-14 19:24:07 -0700
commit18356d7aa86b0687ea475d3c0f4fe0acb9f374ae (patch)
treeaec8762ed7c0df5fbd9409fad78518f442be30a2
parentcd709dedfc004dd5dcc9bd42e0a1fccd19534c09 (diff)
Start counting checkpoint interval when last DB flush ends.
-rw-r--r--protocol.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.cc b/protocol.cc
index 7631e0a..620fbc3 100644
--- a/protocol.cc
+++ b/protocol.cc
@@ -911,7 +911,7 @@ muchsync_client (sqlite3 *db, notmuch_db &nm,
else if (now - last_commit >= commit_interval) {
nm.close();
sqlexec(db, "COMMIT; BEGIN;");
- last_commit = now;
+ last_commit = time(nullptr);
}
};