Changeset 9
- Timestamp:
- 12/02/04 16:04:38 (4 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/file-sync/src/file_sync.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/file-sync/src/file_sync.c
r2 r9 56 56 fsinfo->member = member; 57 57 fsinfo->hashtable = osync_hashtable_new(); 58 osync_hashtable_load(fsinfo->hashtable, member);59 58 60 59 #ifdef HAVE_FAM … … 89 88 GError *direrror = NULL; 90 89 fsinfo->dir = g_dir_open(fsinfo->path, 0, &direrror); 90 osync_hashtable_load(fsinfo->hashtable, fsinfo->member); 91 91 92 92 if (!osync_anchor_compare(fsinfo->member, fsinfo->path)) … … 207 207 osync_debug("FILE-SYNC", 4, "start: %s", __func__); 208 208 osync_debug("FILE-SYNC", 3, "Writing change %s with changetype %i", osync_change_get_uid(change), osync_change_get_changetype(change)); 209 fs_access(ctx, change); 209 if (!fs_access(ctx, change)) 210 return; 210 211 211 212 filesyncinfo *fsinfo = (filesyncinfo *)osync_context_get_plugin_data(ctx); … … 227 228 filesyncinfo *fsinfo = (filesyncinfo *)osync_context_get_plugin_data(ctx); 228 229 g_dir_close(fsinfo->dir); 230 osync_hashtable_close(fsinfo->hashtable); 229 231 osync_context_report_success(ctx); 230 232 } … … 234 236 osync_debug("FILE-SYNC", 4, "start: %s", __func__); 235 237 filesyncinfo *fsinfo = (filesyncinfo *)data; 236 osync_hashtable_close(fsinfo->hashtable);237 238 osync_hashtable_free(fsinfo->hashtable); 238 239 #ifdef HAVE_FAM
