Nothing immediately obvious jumps out. You might try adding some mdb_page_list() calls in here, maybe at each point where it pushes a new page onto the cursor.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
