Fix check for size reduction in dedupe.

Tweak debug message for clarity.
This commit is contained in:
Moinak Ghosh 2012-09-25 23:24:33 +05:30
parent 3544a8c708
commit 333b7b011e

View file

@ -583,8 +583,9 @@ process_blocks:
} }
} }
} }
DEBUG_STAT_EN(printf("Hash collisions: %u\n", hash_collisions)); DEBUG_STAT_EN(printf("Total Hashtable bucket collisions: %u\n", hash_collisions));
dedupe_index_sz = (ssize_t)blknum * RABIN_ENTRY_SIZE;
if (matchlen < dedupe_index_sz) { if (matchlen < dedupe_index_sz) {
ctx->valid = 0; ctx->valid = 0;
return; return;