This is just basically how a WAL works, if you have an inconsistent state the transaction is rolled back - at that point you need to redo your work.
This is just basically how a WAL works, if you have an inconsistent state the transaction is rolled back - at that point you need to redo your work.