summaryrefslogtreecommitdiffstats
path: root/common/changereplay.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 18:57:07 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 18:57:07 +0200
commit256fe3fc561f1690e5c29640b9081e805ceb5532 (patch)
tree5bf46688b732b534eb30cec9620393f8c6eb487f /common/changereplay.h
parent58b9fa88198eecc224597e52d8bbd7f833fca63b (diff)
downloadsink-256fe3fc561f1690e5c29640b9081e805ceb5532.tar.gz
sink-256fe3fc561f1690e5c29640b9081e805ceb5532.zip
Don't commit after every replayed revision
If we didn't actually do anything we just carry on. Failing to commit is harmless in that case and committing for every revision is rather expensive.
Diffstat (limited to 'common/changereplay.h')
-rw-r--r--common/changereplay.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/changereplay.h b/common/changereplay.h
index ab2d857..c509735 100644
--- a/common/changereplay.h
+++ b/common/changereplay.h
@@ -54,6 +54,7 @@ public slots:
54protected: 54protected:
55 virtual KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) = 0; 55 virtual KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) = 0;
56 virtual bool canReplay(const QByteArray &type, const QByteArray &key, const QByteArray &value) = 0; 56 virtual bool canReplay(const QByteArray &type, const QByteArray &key, const QByteArray &value) = 0;
57 virtual void reportProgress(int progress, int total){};
57 Sink::Storage::DataStore mStorage; 58 Sink::Storage::DataStore mStorage;
58 KAsync::Job<void> replayNextRevision(); 59 KAsync::Job<void> replayNextRevision();
59 60