From: Michael J. Rubinsky Date: Fri, 23 Apr 2010 22:09:32 +0000 (-0400) Subject: No need to gc this table on every addition. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=788a6c1bc0a35bfdb04497c4683bbf5a4b68ab7c;p=horde.git No need to gc this table on every addition. This gets gc'd during the next SYNC operation anyway, don't do it explicitly here for each entry. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/State/History.php b/framework/ActiveSync/lib/Horde/ActiveSync/State/History.php index cae9f430b..39c7c0d26 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/State/History.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/State/History.php @@ -261,13 +261,6 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base public function updateState($type, $change, $origin = Horde_ActiveSync::CHANGE_ORIGIN_NA) { if ($origin == Horde_ActiveSync::CHANGE_ORIGIN_PIM) { - /* We must be updating state during receiving changes from PIM */ - //$sql = 'DELETE FROM ' . $this->_syncMapTable . ' WHERE message_uid = ? AND sync_devid = ?'; - //try { - // $this->_db->delete($sql, array($change['id'], $this->_devId)); - //} catch (Horde_Db_Exception $e) { - // throw new Horde_ActiveSync_Exception($e); - //} $sql = 'INSERT INTO ' . $this->_syncMapTable . ' (message_uid, sync_modtime, sync_key, sync_devid, sync_folderid) VALUES (?, ?, ?, ?, ?)'; try { $this->_db->insert($sql, array($change['id'], $change['mod'], $this->_syncKey, $this->_devId, $change['parent']));