GS-11263
fixed infinite loop in repetitive asserts and fixed undeployment space when redo log is not empty.