Fix initialization of Repository::lastmark when creating a new transaction.
authorAnders Kaseorg <andersk@MIT.EDU>
Sun, 28 Dec 2008 20:26:23 +0000 (28 15:26 -0500)
committerThiago Macieira <thiago@kde.org>
Thu, 8 Jan 2009 15:58:07 +0000 (8 16:58 +0100)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Thiago Macieira <thiago@kde.org>
src/repository.cpp

index 512a745..5faf2af 100644 (file)
@@ -159,7 +159,7 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const
     if ((++commitCount % 10000) == 0)
         // write everything to disk every 10000 commits
         fastImport.write("checkpoint\n");
-    if (++outstandingTransactions == 0)
+    if (outstandingTransactions++ == 0)
         lastmark = 1;           // reset the mark number
     return txn;
 }