Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751274
D2056.1775185222.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
D2056.1775185222.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 3:00 AM (4 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821190
Default Alt Text
D2056.1775185222.diff (3 KB)
Attached To
Mode
D2056: Bump collectionChanges even if we failed to retrieve the entry.
Attached
Detach File
Event Timeline