Skip to content

Commit

Permalink
Update history instead of appending to it (=bloating)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjfox authored and mrubinsk committed Jun 5, 2015
1 parent e510069 commit 15b57f3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -76,7 +76,7 @@ public function synchronize($params = array())
}
foreach ($params['changes'][Horde_Kolab_Storage_Folder_Stamp::DELETED] as $bid => $object) {
$this->history->log(
$object, array('action' => 'delete', 'bid' => $bid, 'stamp' => $stamp)
$object, array('action' => 'delete', 'bid' => $bid, 'stamp' => $stamp), true
);
}
} else {
Expand All @@ -101,7 +101,7 @@ private function _updateLog($object, $bid, $stamp)
$log = $this->history->getHistory($object);
if (count($log) == 0) {
$this->history->log(
$object, array('action' => 'add', 'bid' => $bid, 'stamp' => $stamp)
$object, array('action' => 'add', 'bid' => $bid, 'stamp' => $stamp), true
);
} else {
$last = array('ts' => 0);
Expand All @@ -113,7 +113,7 @@ private function _updateLog($object, $bid, $stamp)
if (!isset($last['bid']) || $last['bid'] != $bid
|| (isset($last['stamp']) && $last['stamp']->isReset($stamp))) {
$this->history->log(
$object, array('action' => 'modify', 'bid' => $bid, 'stamp' => $stamp)
$object, array('action' => 'modify', 'bid' => $bid, 'stamp' => $stamp), true
);
}
}
Expand Down

0 comments on commit 15b57f3

Please sign in to comment.