Commit e2788c4a authored by skummer's avatar skummer

ZP-237 #comment Initialize a folder only if there are objects to be synchronized #time 10m

git-svn-id: https://z-push.org/svn/z-push/trunk@1598 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent d50a4cb9
......@@ -697,7 +697,8 @@ class Sync extends RequestProcessor {
self::$topCollector->AnnounceInformation(sprintf("Exporter registered. %d objects queued.", $changecount), true);
// update folder status as initialized
$spa->SetFolderSyncTotal($changecount);
self::$deviceManager->SetFolderSyncStatus($folderid, DeviceManager::FLD_SYNC_INITIALIZED);
if ($changecount > 0)
self::$deviceManager->SetFolderSyncStatus($folderid, DeviceManager::FLD_SYNC_INITIALIZED);
}
else if ($status != SYNC_STATUS_SUCCESS)
self::$topCollector->AnnounceInformation(sprintf("StatusException code: %d", $status), true);
......
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