opening and closing redo file inside commit func