diff options
author | Thiago Macieira <thiago.macieira@trolltech.com> | 2007-12-27 13:41:16 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@trolltech.com> | 2007-12-27 13:41:16 +0100 |
commit | a812d0b14d8e341c48201354122578705af873e4 (patch) | |
tree | 833cd484e98804ce7a2bc9d89c47361e7ebd9ae4 | |
parent | b8549b9065cd1c3fb1914d3617838ef39fc12075 (diff) | |
download | svn2git-a812d0b14d8e341c48201354122578705af873e4.tar svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.gz svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.bz2 svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.xz svn2git-a812d0b14d8e341c48201354122578705af873e4.zip |
write to disk every 10000 commits, not 9999 times each 10000 commits
-rw-r--r-- | src/repository.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |