diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:39:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:39:05 +0100 |
commit | 28e67be84c418cb661e7c32f2326d0e665320a1e (patch) | |
tree | d2a39540fd4d8aebaec9489ce1e3ebc1c70c7ecc /common/synchronizer.cpp | |
parent | 74d357f533b49b0d1eeb72606303cfd8a16fb20e (diff) | |
download | sink-28e67be84c418cb661e7c32f2326d0e665320a1e.tar.gz sink-28e67be84c418cb661e7c32f2326d0e665320a1e.zip |
One central place to generate uids
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 4a0ac46..b8de1ed 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "deleteentity_generated.h" | 29 | #include "deleteentity_generated.h" |
30 | #include "flush_generated.h" | 30 | #include "flush_generated.h" |
31 | #include "notification_generated.h" | 31 | #include "notification_generated.h" |
32 | #include "utils.h" | ||
32 | 33 | ||
33 | using namespace Sink; | 34 | using namespace Sink; |
34 | 35 | ||
@@ -382,7 +383,7 @@ KAsync::Job<void> Synchronizer::processRequest(const SyncRequest &request) | |||
382 | modifiedRequest.options = SyncRequest::NoOptions; | 383 | modifiedRequest.options = SyncRequest::NoOptions; |
383 | //Normally we won't have a requestId here | 384 | //Normally we won't have a requestId here |
384 | if (modifiedRequest.requestId.isEmpty()) { | 385 | if (modifiedRequest.requestId.isEmpty()) { |
385 | modifiedRequest.requestId = QUuid::createUuid().toByteArray(); | 386 | modifiedRequest.requestId = createUuid(); |
386 | } | 387 | } |
387 | SinkTraceCtx(mLogCtx) << "Enqueuing flush request " << modifiedRequest.requestId; | 388 | SinkTraceCtx(mLogCtx) << "Enqueuing flush request " << modifiedRequest.requestId; |
388 | 389 | ||