We want to make it possible for a master to restart from AOF and still be able to serve PSYNC.
see #8015
In theory, we could either check the the offset in the preamble rdb header has a chance to psync before loading the rdb and AOF tail (see #10523), and then skip the AOF tail and psync instead.
Or we can save (maybe periodically) replication offsets in the AOF file.