Delete one version of commit_or_rollback_transaction, since the other works for either case.