I wonder what is the issue with the db below? I know it breaks the ACID and will cause dirty read/write. I wonder what should we the correct code?
def bad_transfer(sr