dav/sync.c

changeset 675
a8117c4feaad
parent 672
4bfe452a2665
child 679
0d352b79363a
--- a/dav/sync.c	Sat Oct 26 12:40:35 2019 +0200
+++ b/dav/sync.c	Sat Oct 26 14:55:53 2019 +0200
@@ -845,6 +845,7 @@
         }
     }
     
+    // update metadata
     UCX_FOREACH(elm, res_metadata) {
         DavResource *res = elm->data;
         if(sync_shutdown) {
@@ -1319,6 +1320,8 @@
     
     LocalResource *local = NULL;
     if(copy) {
+        // TODO: maybe we should not copy the whole resource
+        // with all metadata hashes
         local = local_resource_copy(content, res->path);
     } else {
         // reuse previous LocalResource (content)
@@ -3362,6 +3365,8 @@
     }
     
     if(!store_tags) {
+        nullfree(local->remote_tags_hash);
+        local->remote_tags_hash = remote_hash;
         return 0;
     }
     

mercurial