4522. [bug] Handle big gaps in log file version numbers better. [RT #38688] (cherry picked from commit cab871f1bc3fc9184c21388a1ec9c890accdc893)