]> andersk Git - svn-all-fast-export.git/commitdiff
write to disk every 10000 commits, not 9999 times each 10000 commits
authorThiago Macieira <thiago.macieira@trolltech.com>
Thu, 27 Dec 2007 12:41:16 +0000 (13:41 +0100)
committerThiago Macieira <thiago.macieira@trolltech.com>
Thu, 27 Dec 2007 12:41:16 +0000 (13:41 +0100)
src/repository.cpp

index 76171abb5bf7ded4a26c23e2ef0dbd3ca18fec44..21641e75868c48a8fb0162e682125801015e7453 100644 (file)
@@ -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;
This page took 0.27525 seconds and 5 git commands to generate.