2838 // check if metadata has changed |
2838 // check if metadata has changed |
2839 // metadata are tags, mode, owner, xattr |
2839 // metadata are tags, mode, owner, xattr |
2840 // set res->metadata_updated to 1 in case any metadata has changed |
2840 // set res->metadata_updated to 1 in case any metadata has changed |
2841 |
2841 |
2842 // check if tags have changed |
2842 // check if tags have changed |
2843 if(dir->tagconfig && dir->tagconfig->detect_changes && !res->tags_updated) { |
2843 if(db_res->tags_updated) { |
|
2844 res->tags_updated = 1; |
|
2845 res->metadata_updated = 1; |
|
2846 } else if(dir->tagconfig && dir->tagconfig->detect_changes ) { |
2844 UcxBuffer *tags = sync_get_file_tag_data(dir, res); |
2847 UcxBuffer *tags = sync_get_file_tag_data(dir, res); |
2845 if(tags) { |
2848 if(tags) { |
2846 if(db_res->tags_hash) { |
2849 if(db_res->tags_hash) { |
2847 char *hash = dav_create_hash(tags->space, tags->size); |
2850 char *hash = dav_create_hash(tags->space, tags->size); |
2848 if(strcmp(hash, db_res->tags_hash)) { |
2851 if(strcmp(hash, db_res->tags_hash)) { |