diff options
author | David Mazieres <dm@uun.org> | 2016-09-14 19:24:07 -0700 |
---|---|---|
committer | David Mazieres <dm@uun.org> | 2016-09-14 19:24:07 -0700 |
commit | 18356d7aa86b0687ea475d3c0f4fe0acb9f374ae (patch) | |
tree | aec8762ed7c0df5fbd9409fad78518f442be30a2 | |
parent | cd709dedfc004dd5dcc9bd42e0a1fccd19534c09 (diff) |
Start counting checkpoint interval when last DB flush ends.
-rw-r--r-- | protocol.cc | 2 |
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); } }; |