lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: make sure ids start with 0 and not 1
Date Sat, 07 Mar 2015 19:29:57 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 9a920eb10 -> 6bbe71ffe


make sure ids start with 0 and not 1


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/80bcdfaf
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/80bcdfaf
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/80bcdfaf

Branch: refs/heads/master
Commit: 80bcdfaf19e1f6708007c3c6c885f61a44e0355a
Parents: 9a920eb
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat Mar 7 14:05:08 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat Mar 7 14:05:08 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/LineFileDocs.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/80bcdfaf/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs b/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
index 374aa7d..4857a5f 100644
--- a/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
+++ b/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
@@ -295,7 +295,7 @@ namespace Lucene.Net.Util
             }
             docState.TitleTokenized.StringValue = title;
             docState.Date.StringValue = line.Substring(1 + spot, spot2 - (1 + spot));
-            docState.Id.StringValue = Convert.ToString(Id.IncrementAndGet());
+            docState.Id.StringValue = Convert.ToString(Id.GetAndIncrement());
             return docState.Doc;
         }
     }


Mime
View raw message