Hi all,

I found a bug in line 664, function SegmentMerger::mergeNorms(), file
SegmentMerger.cpp.

It happens when I was mergering my index in the RAMDirectory to an empty
index on the disk.  The index could be empty, so the maxDoc is 0 sometimes.
It shouldn't get the IndexInput if maxDoc is zero.   Otherwise, an exception
is happened.
To fix this bug, I insert a condition statement in line 664, only get the
IndexInput if maxDoc>0.

I don't know the process of SourceForge, but could I submit my fix to the
source code?

Thanks,
Qizhen
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to