Changeset 3313
- Timestamp:
- 05/04/08 01:33:46 (3 months ago)
- Files:
-
- trunk/opensync/helper/opensync_hashtable.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/opensync/helper/opensync_hashtable.c
r3307 r3313 351 351 g_hash_table_insert(table->db_entries, uid, hash); 352 352 } 353 osync_list_free(result); 353 354 354 355 osync_trace(TRACE_EXIT, "%s", __func__); … … 449 450 const char *uid = osync_change_get_uid(change); 450 451 const char *hash = osync_change_get_hash(change); 452 453 osync_assert_msg(uid, "Some plugin forgot to set the UID for the change. Please report this bug."); 451 454 452 455 switch (osync_change_get_changetype(change)) { … … 470 473 break; 471 474 case OSYNC_CHANGE_TYPE_MODIFIED: 475 osync_assert_msg(hash, "Some plugin forgot to set the HASH for the change for the changetype MODIFIED. Please report this bug."); 472 476 /* This works even if the UID/key is new to the hashtable */ 473 477 g_hash_table_replace(table->db_entries, g_strdup(uid), g_strdup(hash)); 474 478 break; 475 479 case OSYNC_CHANGE_TYPE_ADDED: 480 osync_assert_msg(hash, "Some plugin forgot to set the HASH for the change for the changetype ADDED. Please report this bug."); 476 481 g_hash_table_insert(table->db_entries, g_strdup(uid), g_strdup(hash)); 477 482 break;
