You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/10/13 15:59:06 UTC
[lucy-commits] [3/6] git commit: refs/heads/sortfieldwriter - Initialize
SortFieldWriter#run_tick to 1
Initialize SortFieldWriter#run_tick to 1
Make sure we never use a run_tick of 0.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/393723d3
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/393723d3
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/393723d3
Branch: refs/heads/sortfieldwriter
Commit: 393723d354d8ce44841cd006a26d03894315088d
Parents: a5aa40a
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Thu Sep 26 02:13:49 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Oct 13 15:10:22 2013 +0200
----------------------------------------------------------------------
core/Lucy/Index/SortFieldWriter.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/393723d3/core/Lucy/Index/SortFieldWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortFieldWriter.c b/core/Lucy/Index/SortFieldWriter.c
index 7c698e6..ca2ce30 100644
--- a/core/Lucy/Index/SortFieldWriter.c
+++ b/core/Lucy/Index/SortFieldWriter.c
@@ -91,7 +91,7 @@ SortFieldWriter_init(SortFieldWriter *self, Schema *schema,
ivars->sort_cache = NULL;
ivars->doc_map = NULL;
ivars->sorted_ids = NULL;
- ivars->run_tick = 0;
+ ivars->run_tick = 1;
ivars->ord_width = 0;
ivars->last_val = NULL;
@@ -212,7 +212,6 @@ SortFieldWriter_Add_Segment_IMP(SortFieldWriter *self, SegReader *reader,
run_ivars->run_max = SegReader_Doc_Max(reader);
run_ivars->run_cardinality = SortCache_Get_Cardinality(sort_cache);
run_ivars->null_ord = SortCache_Get_Null_Ord(sort_cache);
- run_ivars->run_tick = 1;
SortFieldWriter_Add_Run(self, (SortExternal*)run);
}