Fix Dedupe Mode initialization.

This commit is contained in:
Moinak Ghosh 2013-07-12 18:21:49 +05:30
parent 8b73303488
commit 2a218e9da5

View file

@ -373,7 +373,7 @@ set_config_s(archive_config_t *cfg, const char *algo, cksum_t ck, cksum_t ck_sim
cfg->archive_sz = file_sz; cfg->archive_sz = file_sz;
cfg->dedupe_mode = MODE_SIMILARITY; cfg->dedupe_mode = MODE_SIMILARITY;
if (cfg->archive_sz <= SIXTEEN_GB && (pct_interval == 0 || pct_interval == 100)) { if (pct_interval == 0 || pct_interval == 100) {
cfg->dedupe_mode = MODE_SIMPLE; cfg->dedupe_mode = MODE_SIMPLE;
cfg->segment_sz_bytes = user_chunk_sz; cfg->segment_sz_bytes = user_chunk_sz;
cfg->similarity_cksum_sz = cfg->chunk_cksum_sz; cfg->similarity_cksum_sz = cfg->chunk_cksum_sz;