Properly cleanup global dedupe state.

This commit is contained in:
Moinak Ghosh 2013-04-18 21:36:36 +05:30
parent 8ae571124d
commit 426c0d0bf2

View file

@ -358,9 +358,7 @@ destroy_dedupe_context(dedupe_context_t *ctx)
pthread_mutex_lock(&init_lock); pthread_mutex_lock(&init_lock);
if (arc) { if (arc) {
if (arc->dedupe_mode == MODE_SIMPLE) { destroy_global_db_s(arc);
destroy_global_db_s(arc);
}
} }
arc = NULL; arc = NULL;
pthread_mutex_unlock(&init_lock); pthread_mutex_unlock(&init_lock);