because we need page LSNs stored in the main database to be less than the current XLOG position. Hence, generate the new XLOG segment at last old segment number plus one.
Could do with more testing, but it works in the simple cases.