Partially revert previous patch - dedup - deduplicating backup program
 (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 85170f6b38620fddbf8b08b13a3b293f4db62d3e
 (DIR) parent 12641354d5c6d5d5a06b889df69ec71cbbeca176
 (HTM) Author: sin <sin@2f30.org>
       Date:   Mon,  4 Mar 2019 16:20:49 +0000
       
       Partially revert previous patch
       
       Always checking the cache takes too much time for large repos.
       
       Diffstat:
         M dedup.c                             |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/dedup.c b/dedup.c
       @@ -546,10 +546,14 @@ load_cache(void)
                uint64_t nr_entries;
                uint64_t i;
        
       -        check_cache();
       -
                xlseek(cfd, 0, SEEK_SET);
                nr_entries = cache_nr_entries();
       +        if (nr_entries == 0) {
       +                xlseek(ifd, SNAP_HDR_SIZE, SEEK_SET);
       +                walk_snap(reload_cache, NULL);
       +                return;
       +        }
       +
                for (i = 0; i < nr_entries; i++) {
                        struct cache_entry cache_entry;