From: <svn...@op...> - 2010-09-04 22:13:12
|
Author: paule Date: Sun Sep 5 00:13:00 2010 New Revision: 6113 URL: http://www.opensync.org/changeset/6113 Log: opie-sync: update change type of change before sending to hashtable Modified: plugins/opie-sync/src/opie_sync.c Modified: plugins/opie-sync/src/opie_sync.c ============================================================================== --- plugins/opie-sync/src/opie_sync.c Tue Aug 31 06:21:43 2010 (r6112) +++ plugins/opie-sync/src/opie_sync.c Sun Sep 5 00:13:00 2010 (r6113) @@ -476,14 +476,16 @@ else { /* Detect the type of change */ changetype = osync_hashtable_get_changetype(hashtable, change); - - /* Update the hashtable with the hash of the object */ - osync_hashtable_update_change(hashtable, change); } /* Set the type of change */ osync_change_set_changetype(change, changetype); - + + if( !env->fastcapable ) { + /* Update the hashtable with the hash of the object */ + osync_hashtable_update_change(hashtable, change); + } + if (changetype != OSYNC_CHANGE_TYPE_UNMODIFIED) { /* Convert category IDs to names that other systems can use */ g_mutex_lock(env->plugin_env->plugin_mutex); |