It is related - because once the quick partition code is enabled the auto-header detection code isn't called any more (see comments on the previous commit).  it is partly I was not convinced it was the best place to put the code.  (Reading a header as a side-effect of calculating a record size.)

Really this code should be split into a function, and ideally be conditional on the auto-discovery.