Since every optype has these exact same three lines, it would be nice to pull it out.  Also, those three lines really translate to "wrong metadata phase".  Is there any way to get to fileid via __wt_logop_read? (I know, that is one layer down in the data, so I don't have a clean code suggestion to make.)  Although every log op type does have 'fileid' as the first item, so it is currently a known location, that is not a good assumption to code in here or may not hold in the future.