Add mtime check for hashes.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 27 Oct 2006 23:58:39 +0000 (23:58 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 27 Oct 2006 23:58:39 +0000 (23:58 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@721 959494ce-11ee-0310-bf91-de5d638817bd

daemon/client.c

index 45aa7be..1e659ab 100644 (file)
@@ -546,7 +546,7 @@ static void checkhashes(void)
            continue;
        if(!node->f.b.hastth)
        {
-           if((hc = findhashcache(node->dev, node->inode)) != NULL)
+           if(((hc = findhashcache(node->dev, node->inode)) != NULL) && (hc->mtime == node->mtime))
            {
                memcpy(node->hashtth, hc->tth, 24);
                node->f.b.hastth = 1;