Commit a230baa2 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #65 in ZP/z-push from bugfix/ZP-723-windowsize-of-512-is-used-when-exporting to develop

* commit '407c07bc':
  ZP-723 Overwrite windowsSize only if it's bigger than the available global windowSize.

(cherry picked from commit 96b99c45)
parent 139d7186
......@@ -906,7 +906,7 @@ class Sync extends RequestProcessor {
// limit windowSize to the max available limit of the global window size left
$globallyAvailable = $sc->GetGlobalWindowSize() - $globallyExportedItems;
if ($changecount > $globallyAvailable) {
if ($changecount > $globallyAvailable && $windowSize > $globallyAvailable) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandleSync(): Limit window size to %d as the global window size limit will be reached", $globallyAvailable));
$windowSize = $globallyAvailable;
}
......
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