You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2014/06/19 06:25:59 UTC

[lucy-commits] [02/11] git commit: refs/heads/sortfieldwriter2 - 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/22663dea
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/22663dea
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/22663dea

Branch: refs/heads/sortfieldwriter2
Commit: 22663dea422a186700379b80021fb202ca982dbd
Parents: 0cf86d1
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Thu Sep 26 02:13:49 2013 +0200
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Wed Jun 18 21:22:59 2014 -0700

----------------------------------------------------------------------
 core/Lucy/Index/SortFieldWriter.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/22663dea/core/Lucy/Index/SortFieldWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortFieldWriter.c b/core/Lucy/Index/SortFieldWriter.c
index 8a372a3..f34b68e 100644
--- a/core/Lucy/Index/SortFieldWriter.c
+++ b/core/Lucy/Index/SortFieldWriter.c
@@ -92,7 +92,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;
 
@@ -217,7 +217,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);
 }