I wasn't sure what the right thing to do with this REF was. Could you review this bit of code carefully? I'm not that comfortable with the WT_PAGE, WT_REF, page state stuff.