lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [31/50] [abbrv] git commit: Minor bugfix for reader type logic
Date Tue, 24 Sep 2013 18:33:07 GMT
Minor bugfix for reader type logic


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

Branch: refs/heads/branch_4x
Commit: 02797a95e97b1ca822ea2c333a61b92dd64d77db
Parents: e9c6e03
Author: Paul Irwin <paulirwin@gmail.com>
Authored: Tue Aug 6 22:58:58 2013 -0400
Committer: Paul Irwin <paulirwin@gmail.com>
Committed: Tue Aug 6 22:58:58 2013 -0400

----------------------------------------------------------------------
 src/core/Index/CompositeReaderContext.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/02797a95/src/core/Index/CompositeReaderContext.cs
----------------------------------------------------------------------
diff --git a/src/core/Index/CompositeReaderContext.cs b/src/core/Index/CompositeReaderContext.cs
index 12e2f4f..eb965fa 100644
--- a/src/core/Index/CompositeReaderContext.cs
+++ b/src/core/Index/CompositeReaderContext.cs
@@ -88,7 +88,7 @@ namespace Lucene.Net.Index
 
             private IndexReaderContext Build(CompositeReaderContext parent, IndexReader reader,
int ord, int docBase)
             {
-                if (reader.GetType() == typeof(AtomicReader))
+                if (reader is AtomicReader)
                 {
                     AtomicReader ar = (AtomicReader)reader;
                     AtomicReaderContext atomic = new AtomicReaderContext(parent, ar, ord,
docBase, leaves.Count, leafDocBase);


Mime
View raw message