From 8c48090e240d68564c79eb29ac9004cc911bb5d0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 23 May 2007 15:11:01 +0200 Subject: [PATCH] Don't forget to increase run counter. --- lib/sorter/s-fixint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sorter/s-fixint.h b/lib/sorter/s-fixint.h index 37d6ef22..06d5322e 100644 --- a/lib/sorter/s-fixint.h +++ b/lib/sorter/s-fixint.h @@ -50,7 +50,9 @@ static int P(internal)(struct sort_context *ctx, struct sort_bucket *bin, struct ctx->total_int_time += get_timer(&timer); SORT_XTRACE(3, "s-fixint: Writing"); - struct fastbuf *out = sbuck_write((n < maxkeys) ? bout_only : bout); + if (n < maxkeys) + bout = bout_only; + struct fastbuf *out = sbuck_write(bout); bout->runs++; uns merged UNUSED = 0; for (uns i=0; i