Commit de033512 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #529 in ZP/z-push from...

Merge pull request #529 in ZP/z-push from bugfix/ZP-1215-error-on-generating-first-sync-state to develop

* commit 'd170a007':
  ZP-1215 Setup exporter even if GlobalWindowSize is full for folders without a SyncKey (new folders).
parents ca84f48b d170a007
......@@ -768,8 +768,8 @@ class Sync extends RequestProcessor {
// TODO we could check against $sc->GetChangedFolderIds() on heartbeat so we do not need to configure all exporter again
if($status == SYNC_STATUS_SUCCESS && ($sc->GetParameter($spa, "getchanges") || ! $spa->HasSyncKey())) {
// no need to run the exporter if the globalwindowsize is already full
if ($sc->GetGlobalWindowSize() == $this->globallyExportedItems) {
// no need to run the exporter if the globalwindowsize is already full - if collection already has a synckey (ZP-1215)
if ($sc->GetGlobalWindowSize() == $this->globallyExportedItems && $spa->HasSyncKey()) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("Sync(): no exporter setup for '%s' as GlobalWindowSize is full.", $spa->GetFolderId()));
$setupExporter = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment