From 333b7b011e8553f37692671abaca88b147672fb3 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Tue, 25 Sep 2012 23:24:33 +0530 Subject: [PATCH] Fix check for size reduction in dedupe. Tweak debug message for clarity. --- rabin/rabin_dedup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rabin/rabin_dedup.c b/rabin/rabin_dedup.c index 027ef61..104381d 100755 --- a/rabin/rabin_dedup.c +++ b/rabin/rabin_dedup.c @@ -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) { ctx->valid = 0; return;