From: Martin Mares Date: Thu, 30 Aug 2007 08:00:20 +0000 (+0200) Subject: Presorting for multi-way merge should swap out the buckets. X-Git-Tag: holmes-import~506^2~13^2~72 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7655410e375db3119510775c544b56987ee4bbf8;p=libucw.git Presorting for multi-way merge should swap out the buckets. --- diff --git a/lib/sorter/govern.c b/lib/sorter/govern.c index ba59a411..6befff52 100644 --- a/lib/sorter/govern.c +++ b/lib/sorter/govern.c @@ -199,6 +199,7 @@ sorter_multiway(struct sort_context *ctx, struct sort_bucket *b) cont = sorter_presort(ctx, b, p, (!part_cnt && join) ? join : p); part_cnt++; total_size += sbuck_size(p); + sbuck_swap_out(p); } while (cont); sorter_stop_timer(ctx, &ctx->total_pre_time);