diff options
-rw-r--r-- | common/changereplay.cpp | 3 | ||||
-rw-r--r-- | common/changereplay.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/common/changereplay.cpp b/common/changereplay.cpp index 532cca8..4870551 100644 --- a/common/changereplay.cpp +++ b/common/changereplay.cpp | |||
@@ -99,6 +99,9 @@ KAsync::Job<void> ChangeReplay::replayNextRevision() | |||
99 | SinkTraceCtx(mLogCtx) << "Changereplay from " << *lastReplayedRevision << " to " << *topRevision; | 99 | SinkTraceCtx(mLogCtx) << "Changereplay from " << *lastReplayedRevision << " to " << *topRevision; |
100 | return KAsync::doWhile( | 100 | return KAsync::doWhile( |
101 | [this, lastReplayedRevision, topRevision]() -> KAsync::Job<KAsync::ControlFlowFlag> { | 101 | [this, lastReplayedRevision, topRevision]() -> KAsync::Job<KAsync::ControlFlowFlag> { |
102 | if (!mGuard) { | ||
103 | return KAsync::value(KAsync::Break); | ||
104 | } | ||
102 | if (*lastReplayedRevision >= *topRevision) { | 105 | if (*lastReplayedRevision >= *topRevision) { |
103 | SinkTraceCtx(mLogCtx) << "Done replaying"; | 106 | SinkTraceCtx(mLogCtx) << "Done replaying"; |
104 | return KAsync::value(KAsync::Break); | 107 | return KAsync::value(KAsync::Break); |
diff --git a/common/changereplay.h b/common/changereplay.h index 3ca896e..2772da9 100644 --- a/common/changereplay.h +++ b/common/changereplay.h | |||
@@ -63,6 +63,7 @@ private: | |||
63 | bool mReplayInProgress; | 63 | bool mReplayInProgress; |
64 | Sink::Storage::DataStore::Transaction mMainStoreTransaction; | 64 | Sink::Storage::DataStore::Transaction mMainStoreTransaction; |
65 | Sink::Log::Context mLogCtx; | 65 | Sink::Log::Context mLogCtx; |
66 | QSharedPointer<QObject> mGuard; | ||
66 | }; | 67 | }; |
67 | 68 | ||
68 | class NullChangeReplay : public ChangeReplay | 69 | class NullChangeReplay : public ChangeReplay |