Commit d170a007 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1215 Setup exporter even if GlobalWindowSize is full for folders

without a SyncKey (new folders).

Released under the Affero GNU General Public License (AGPL) version 3.
parent ca84f48b
......@@ -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