lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [3/6] git commit: refs/heads/sortfieldwriter - Initialize SortFieldWriter#run_tick to 1
Date Sun, 13 Oct 2013 13:59:06 GMT
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 <wellnhofer@aevum.de>
Authored: Thu Sep 26 02:13:49 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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);
 }
 


Mime
View raw message