#10 PageIterator Empty BUG

open
nobody
None
5
2009-07-27
2009-07-27
No

Hi,
check the following code:
for (PageIterator itr = wiki.getPageIterator(Page.CATEGORY); itr.hasNext();) {
itr.next();
}
in my database(en_20090306), using the above command return no page!
I check the source code and see that there is a "fillBuffer" method that calls in the PageIterator's constructor and if this method can not fill the buffer for the first time, PageIterator class return without appropriate results.
For example since the category types exist in the end of "page" table, the "fillBuffer" return no page in the first time (bufferSize = 100000). For the time being, we can increase the "bufferSize" and solve the problem but it needs precise analysis.
Regards,
Amir

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks