def bayesdb_rollback_transaction(bdb):
    if bdb.txn_depth > 0:
        raise BayesDBTxnError(bdb, 'Not in a transaction!')
    bdb.sql_execute("ROLLBACK")
    bdb.txn_depth = 0
    bayesdb_txn_fini(bdb)
dataset/ETHPy150Open probcomp/bayeslite/src/txn.py/bayesdb_rollback_transaction/operator `==` -> `>`