Page MenuHomePhorge

D2056.1775390740.diff
No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None

D2056.1775390740.diff

diff --git a/lib/ext/Syncroton/Command/Sync.php b/lib/ext/Syncroton/Command/Sync.php
--- a/lib/ext/Syncroton/Command/Sync.php
+++ b/lib/ext/Syncroton/Command/Sync.php
@@ -830,6 +830,14 @@
$commands->appendChild($add);
+ $newContentStates[] = new Syncroton_Model_Content(array(
+ 'device_id' => $this->_device,
+ 'folder_id' => $collectionData->folder,
+ 'contentid' => $serverId,
+ 'creation_time' => $this->_syncTimeStamp,
+ 'creation_synckey' => $collectionData->syncState->counter + 1
+ ));
+
$collectionChanges++;
} catch (Syncroton_Exception_MemoryExhausted $seme) {
// continue to next entry, as there is not enough memory left for the current entry
@@ -844,16 +852,11 @@
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage());
if ($this->_logger instanceof Zend_Log)
$this->_logger->debug(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getTraceAsString());
+ // We bump collectionChanges anyways to make sure the windowSize still applies.
+ $collectionChanges++;
}
// mark as sent to the client, even the conversion to xml might have failed
- $newContentStates[] = new Syncroton_Model_Content(array(
- 'device_id' => $this->_device,
- 'folder_id' => $collectionData->folder,
- 'contentid' => $serverId,
- 'creation_time' => $this->_syncTimeStamp,
- 'creation_synckey' => $collectionData->syncState->counter + 1
- ));
unset($serverModifications['added'][$id]);
}
@@ -890,6 +893,8 @@
} catch (Exception $e) {
if ($this->_logger instanceof Zend_Log)
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage());
+ // We bump collectionChanges anyways to make sure the windowSize still applies.
+ $collectionChanges++;
}
unset($serverModifications['changed'][$id]);
@@ -915,6 +920,8 @@
} catch (Exception $e) {
if ($this->_logger instanceof Zend_Log)
$this->_logger->warn(__METHOD__ . '::' . __LINE__ . " unable to convert entry to xml: " . $e->getMessage());
+ // We bump collectionChanges anyways to make sure the windowSize still applies.
+ $collectionChanges++;
}
unset($serverModifications['deleted'][$id]);

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 12:05 PM (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821190
Default Alt Text
D2056.1775390740.diff (3 KB)

Event Timeline