From 426c0d0bf2173a0629ecb89a7cd6f83d1a6d31b1 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Thu, 18 Apr 2013 21:36:36 +0530 Subject: [PATCH] Properly cleanup global dedupe state. --- rabin/rabin_dedup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rabin/rabin_dedup.c b/rabin/rabin_dedup.c index 891fc1a..904c891 100755 --- a/rabin/rabin_dedup.c +++ b/rabin/rabin_dedup.c @@ -358,9 +358,7 @@ destroy_dedupe_context(dedupe_context_t *ctx) pthread_mutex_lock(&init_lock); if (arc) { - if (arc->dedupe_mode == MODE_SIMPLE) { - destroy_global_db_s(arc); - } + destroy_global_db_s(arc); } arc = NULL; pthread_mutex_unlock(&init_lock);