From a812d0b14d8e341c48201354122578705af873e4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 27 Dec 2007 13:41:16 +0100 Subject: [PATCH] write to disk every 10000 commits, not 9999 times each 10000 commits --- src/repository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository.cpp b/src/repository.cpp index 76171ab..21641e7 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -120,7 +120,7 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const txn->lastmark = revnum; startFastImport(); - if (++commitCount % 10000) + if ((++commitCount % 10000) == 0) // write everything to disk every 10000 commits fastImport.write("checkpoint\n"); return txn; -- 2.45.0