Commit 3b7ea727 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #185 in ZP/z-push from bugfix/ZP-865-don-t-enter-conflict-detection-if to develop

* commit 'ec8a0989':
  ZP-865 Update year.
  ZP-865 Abort conflict detection if there are more 100 changes to be exported.
parents e7249ef5 ec8a0989
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* Created : 14.02.2011 * Created : 14.02.2011
* *
* Copyright 2007 - 2015 Zarafa Deutschland GmbH * Copyright 2007 - 2016 Zarafa Deutschland GmbH
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3, * it under the terms of the GNU Affero General Public License, version 3,
...@@ -309,6 +309,11 @@ class ImportChangesICS implements IImportChanges { ...@@ -309,6 +309,11 @@ class ImportChangesICS implements IImportChanges {
// monitor how long it takes to export potential conflicts // monitor how long it takes to export potential conflicts
// if this takes "too long" we cancel this operation! // if this takes "too long" we cancel this operation!
$potConflicts = $exporter->GetChangeCount(); $potConflicts = $exporter->GetChangeCount();
if ($potConflicts > 100) {
ZLog::Write(LOGLEVEL_WARN, sprintf("ImportChangesICS->lazyLoadConflicts(): conflict detection abandoned as there are too many (%d) changes to be exported.", $potConflicts));
$this->conflictsLoaded = true;
return;
}
$started = time(); $started = time();
$exported = 0; $exported = 0;
try { try {
......
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