BUG: 
Lucene.Net.TestFramework.Codecs.RAMOnly.RAMOnlyPostingsFormat.FieldsConsumer(): 
Corrected call to AtomicInt64 from IncrementAndGet() to GetAndIncrement()


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

Branch: refs/heads/api-work
Commit: dc04c72c297be0aab81f1b98466843aa115b10f6
Parents: 6d55c69
Author: Shad Storhaug <[email protected]>
Authored: Thu Mar 23 22:32:05 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Thu Mar 23 22:32:05 2017 +0700

----------------------------------------------------------------------
 .../Codecs/RAMOnly/RAMOnlyPostingsFormat.cs                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/dc04c72c/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
----------------------------------------------------------------------
diff --git 
a/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs 
b/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
index 766e218..712d18d 100644
--- a/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
+++ b/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
@@ -668,7 +668,7 @@ namespace Lucene.Net.Codecs.RAMOnly
 
         public override FieldsConsumer FieldsConsumer(SegmentWriteState 
writeState)
         {
-            int id = (int)NextID.IncrementAndGet();
+            int id = (int)NextID.GetAndIncrement();
 
             // TODO -- ok to do this up front instead of
             // on close....?  should be ok?

Reply via email to