Correspond segment size to chunk size for Segmented Dedupe for better accuracy.
This commit is contained in:
parent
d89c95225a
commit
0a1e3b39ef
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ set_config_s(archive_config_t *cfg, const char *algo, cksum_t ck, cksum_t ck_sim
|
||||||
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;
|
||||||
} else {
|
} else {
|
||||||
cfg->segment_sz_bytes = EIGHT_MB;
|
cfg->segment_sz_bytes = EIGHT_MB * cfg->chunk_sz;
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg->segment_sz = cfg->segment_sz_bytes / cfg->chunk_sz_bytes;
|
cfg->segment_sz = cfg->segment_sz_bytes / cfg->chunk_sz_bytes;
|
||||||
|
|
Loading…
Reference in a new issue