]> mj.ucw.cz Git - libucw.git/commitdiff
Presorting for multi-way merge should swap out the buckets.
authorMartin Mares <mj@ucw.cz>
Thu, 30 Aug 2007 08:00:20 +0000 (10:00 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 30 Aug 2007 08:00:20 +0000 (10:00 +0200)
lib/sorter/govern.c

index ba59a411adaa038bc9b31104dcc43c1aec2b752d..6befff5262f3bae99f096cc703825986bad223f9 100644 (file)
@@ -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);