Commit 8ce686c1 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-832 Directly compare GlobalWindowSize and globallyExportedItems.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 42963a35
...@@ -702,7 +702,7 @@ class Sync extends RequestProcessor { ...@@ -702,7 +702,7 @@ class Sync extends RequestProcessor {
if($status == SYNC_STATUS_SUCCESS && ($sc->GetParameter($spa, "getchanges") || ! $spa->HasSyncKey())) { if($status == SYNC_STATUS_SUCCESS && ($sc->GetParameter($spa, "getchanges") || ! $spa->HasSyncKey())) {
// no need to run the exporter if the globalwindowsize is already full // no need to run the exporter if the globalwindowsize is already full
if ($sc->GetGlobalWindowSize() - $this->globallyExportedItems == 0) { if ($sc->GetGlobalWindowSize() == $this->globallyExportedItems) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("Sync(): no exporter setup for '%s' as GlobalWindowSize is full.", $spa->GetFolderId())); ZLog::Write(LOGLEVEL_DEBUG, sprintf("Sync(): no exporter setup for '%s' as GlobalWindowSize is full.", $spa->GetFolderId()));
$setupExporter = false; $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