dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit db2431b5cc0b4c4d51ac809ff846145069d6e2cb
parent 34a8535a294fbf33ed054eea3f960dda55a1e720
Author: sin <sin@2f30.org>
Date:   Mon, 25 Feb 2019 15:02:27 +0000

Pull out cache dirty assignment

Diffstat:
Mdedup.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dedup.c b/dedup.c @@ -387,10 +387,10 @@ rebuild_cache(struct snapshot *snap, void *arg) memcpy(cache_entry.md, blk_desc->md, sizeof(cache_entry.md)); cache_entry.offset = blk_desc->offset; cache_entry.size = blk_desc->size; - cache_dirty = 1; add_cache_entry(cache, &cache_entry); } free(buf); + cache_dirty = 1; return WALK_CONTINUE; }