Commit 49773be6 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-826 Force synchronization of folder if there is an unknown error on

exporter setup.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 6a7a9763
......@@ -629,6 +629,11 @@ class SyncCollections implements Iterator {
}
}
catch (StatusException $ste) {
if ($ste->getCode() == SYNC_STATUS_FOLDERHIERARCHYCHANGED) {
ZLog::Write(LOGLEVEL_WARN, "SyncCollections->CountChange(): exporter can not be re-configured due to state error, emulating change in folder to force Sync.");
$this->changes[$folderid] = 1;
return true;
}
throw new StatusException("SyncCollections->CountChange(): exporter can not be re-configured.", self::ERROR_WRONG_HIERARCHY, null, LOGLEVEL_WARN);
}
......
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