PBServer.ElectRecoveryMaster still doesn't implement replaying, but I added an optimization for pruning the remaining recovery data, and also handled the case where a segment must be ignored because all of its backups have failed