commit db2431b5cc0b4c4d51ac809ff846145069d6e2cb
parent 34a8535a294fbf33ed054eea3f960dda55a1e720
Author: sin <sin@2f30.org>
Date: Mon, 25 Feb 2019 15:02:27 +0000
Pull out cache dirty assignment
Diffstat:
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;
}