From: <svn...@op...> - 2010-09-05 23:23:00
|
Author: paule Date: Mon Sep 6 01:22:51 2010 New Revision: 6119 URL: http://www.opensync.org/changeset/6119 Log: opie-sync: fix committing changes back to Opie in fast sync mode Modified: plugins/opie-sync/src/opie_sync.c Modified: plugins/opie-sync/src/opie_sync.c ============================================================================== --- plugins/opie-sync/src/opie_sync.c Mon Sep 6 00:51:52 2010 (r6118) +++ plugins/opie-sync/src/opie_sync.c Mon Sep 6 01:22:51 2010 (r6119) @@ -619,8 +619,15 @@ } OSyncChangeType changetype = osync_change_get_changetype(change); - if( env->fastcapable ) + if( env->fastcapable ) { + // Record the change type in the XML itself opie_xml_set_change_type(change_node, changetype); + // Now, we always want to add the entry to the XML document in this case + // (we're making a list of changes to send, not modifying a document containing + // all of the records). Note: this means changetype shouldn't be used for + // any other purpose after the switch statement below! + changetype = OSYNC_CHANGE_TYPE_ADDED; + } switch (changetype) { case OSYNC_CHANGE_TYPE_DELETED: if(!opie_uid) { |