Fix diskless load handling on broken EOF marker (#9752)
Fix diskless load handling on broken EOF marker (#9752)

During diskless replication, the check for broken EOF mark is misplaced
and should be earlier. Now we do not swap db, we do proper cleanup and
correctly raise module events on this kind of failure.

This issue existed prior to #9323, but before, the side effect was not restoring
backup and not raising the correct module events on this failure.
PKRoma/redis,oranagra/redis,charsyam/redis,ofirluzon/redis,soloestoy/redis,oranagra/redis,ofirluzon/redis,neomantra/redis,charsyam/redis,antirez/redis,yossigo/redis,oranagra/redis,oranagra/redis,ofirluzon/redis,antirez/redis,ofirluzon/redis,charsyam/redis,soloestoy/redis,neomantra/redis,soloestoy/redis,antirez/redis,soloestoy/redis,neomantra/redis,soloestoy/redis,charsyam/redis,yossigo/redis,PKRoma/redis,yossigo/redis,ofirluzon/redis,oranagra/redis,antirez/redis,PKRoma/redis,yossigo/redis,yossigo/redis,charsyam/redis,PKRoma/redis,PKRoma/redis,neomantra/redis,neomantra/redis