From 922da7ab112137fa6dbc587b552c726550f25f4d Mon Sep 17 00:00:00 2001 From: Guillaume Rizk Date: Mon, 8 Jul 2019 19:39:04 +0200 Subject: [PATCH] fix debloom bug in -debloom-impl basic --- gatb-core/src/gatb/kmer/impl/DebloomAlgorithm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gatb-core/src/gatb/kmer/impl/DebloomAlgorithm.cpp b/gatb-core/src/gatb/kmer/impl/DebloomAlgorithm.cpp index 7b3472319..7a6dd9ff9 100644 --- a/gatb-core/src/gatb/kmer/impl/DebloomAlgorithm.cpp +++ b/gatb-core/src/gatb/kmer/impl/DebloomAlgorithm.cpp @@ -337,6 +337,9 @@ void DebloomAlgorithm::execute_aux ( /** We may have reach the maximum number of items in the partition. */ if (partition.size() >= partition.getMaxNbItems()) { + //first erase the destination file because BagFile creator does not erase previous file anymore + system::impl::System::file().remove (outputUri); + /** We exclude the partition content from the critical false positive file. */ end_debloom_partition ( partition,